diff options
author | Yuri Chornoivan <yurchor@ukr.net> | 2013-12-07 19:19:32 +0200 |
---|---|---|
committer | Yuri Chornoivan <yurchor@ukr.net> | 2013-12-07 19:19:45 +0200 |
commit | ce325bbc1cf4e07582fe6fb1fff6206e47652cee (patch) | |
tree | b6ca4d8dcb450ab029fd90e2d04de31546540055 /desktop/README | |
parent | fea2e50c181c7376b1b9c37570375373b7c74bbc (diff) | |
download | tools-ce325bbc1cf4e07582fe6fb1fff6206e47652cee.tar tools-ce325bbc1cf4e07582fe6fb1fff6206e47652cee.tar.gz tools-ce325bbc1cf4e07582fe6fb1fff6206e47652cee.tar.bz2 tools-ce325bbc1cf4e07582fe6fb1fff6206e47652cee.tar.xz tools-ce325bbc1cf4e07582fe6fb1fff6206e47652cee.zip |
Add scripts for desktop files
Diffstat (limited to 'desktop/README')
-rw-r--r-- | desktop/README | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/desktop/README b/desktop/README new file mode 100644 index 00000000..30f8f092 --- /dev/null +++ b/desktop/README @@ -0,0 +1,43 @@ +The scripts may be useful for those who want to +organize sustainable translation process of .desktop files translation. + +Prerequisites: + +Installed python-polib package: + +# urpmi python-polib + +I desktoppo.py: + +Usage: + +1. Copy the script into any folder with .desktop files. +2. Run + python desktoppo.py +3. Script will create .pot's for all .desktop's in the folder. Translate pot's and + rename the translations into <lang_code>.po +4. Run + python desktoppo.py + once more to add your translations to .desktop files. + +If you ever need to update something (.desktop's were updated or you found a typo, +etc.) just run + python desktoppo.py + +Limitations: +The script is useful only for Unicode translations. + +II transconverter.py is a one-time converter for existing +translations. + +Run it as + +python transconverter.py + +in any folder with desktop files on any level of the filesystem subtree. + + * Both of these files are free software. They come without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify them under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. |