- Shell 100%
Currently translated at 100.0% (73 of 73 strings) Co-authored-by: Alexey Rubtsov <rushills@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/fedora-cheat-cubes/fedora_cheat_cube_packagers/ru/ Translation: fedora-cheat-cubes/Fedora_Cheat_Cube_Packagers |
||
|---|---|---|
| abrev | ||
| cubes | ||
| po | ||
| pot | ||
| .gitignore | ||
| abrev.sh | ||
| README.md | ||
| update-pot.sh | ||
fedora-cheat-cubes
Maintain and update Fedora Cheat Cubes
Rules
In a cube:
- the main font for text is Liberation Mono and for title Comfortaa.
- The size used must be the same in all the cube.
- Titles are centered, main text left aligned
- Between a command and its meaning, we use the utf8 symbol ► with color 0a57a4ff
Translation
This project is using itstool to support translation.
You can translate it in Fedora Cheat Cube projects inside the Fedora translation platform
An example with French to generate your localized svg file:
target=fr # change me
msgfmt "./po/$target/Fedora_Cheat_Cube_Users.po" -o "./$target.mo"
itstool -m "./$target.mo" -o ./ ./cubes/Fedora_Cheat_Cube_Users.svg
rm "./$target.mo"
Remember you can download po files directly from Zanata and don’t have to wait for a pull in this repository.
Translatable object
Please note that all string in BOLD is, by default, not translatable (in a cube, the command are in bold). Note also that things in BOLD ITALIC are translatable, beacause they mean a "parameter" like command, user... and they have to be translated.
About translated label position
Especially for verbose languages, you'll have to manually adjust the localized position to make sure the result is clean.
Abbreviation
The abrev.sh script allow you to make some abbreviationx for verbose languages. It works with a rules file where words and abbreviations are separated by '=':
services=sce
activate/desactivate=act/des
You can use it on the .po file:
$ ./abrev.sh abrev/fr.txt po/Fedora_Cheat_Cube_User.fr.po fr.po