Results 1 to 10 of 46

Thread: How to search for files in Xubuntu / XFCE with just Thunar and a Bash script

Threaded View

  1. #11
    Join Date
    Jun 2005
    Location
    the belly of a snake
    Beans
    Hidden!

    Re: How to search for files in Xubuntu / XFCE with just Thunar and a Bash script

    Quote Originally Posted by kalikiana View Post
    As the new version is out, I translated it to German and Spanish. I hope that somebody will like them.

    Sadly the script is not ideal, in fact you might need to remove the '@euro' from the end of the filename.
    Ok, I have modified the script to look for the closest equivalent language file.

    If the exact locale file is not there, it will look for:
    aa_AA.BBB*
    aa_AA*
    aa*

    in that order. So if you don't have that particular variation on the language, you can use something similar that might work

    an example:
    if your locale is zh_TW.euctw
    it will look for 'search-for-files_locale.zh_TW.euctw'
    if that doesnt exist it will look for anything beginning with 'search-for-files_locale.zh_TW'
    if that doesnt exist it will look for anything beginning with 'search-for-files_locale.zh' (and will match zh_CN.gbk, which may be similar enough to use)
    (and of course if that doesnt exist it falls back to english)

    this is because some languages, like chinese, have many different locales
    zh_CN
    zh_CN.gb18030
    zh_CN.gbk
    zh_CN.utf8
    zh_HK
    zh_HK.utf8
    zh_TW
    zh_TW.euctw
    zh_TW.utf8
    ja_JP.eucjp
    ja_JP.utf8
    ko_KR.euckr
    ko_KR.utf8

    I have also made other (significant) changes, which will hopefully be the last to this horrible script for some time. see first post
    Last edited by lapsey; November 26th, 2006 at 04:58 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •