
Generate MO files
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
Very simple service menu for generating MO from PO files.
Single-user installation:
copy the .desktop file to /.kde/share/apps/konqueror/servicemenus/
System-wide installation:
copy the .desktop file as root to /usr/share/apps/konqueror/servicemenus/ Last changelog:
Single-user installation:
copy the .desktop file to /.kde/share/apps/konqueror/servicemenus/
System-wide installation:
copy the .desktop file as root to /usr/share/apps/konqueror/servicemenus/
1.2 - Some changes suggested by undefined. Thanks!!
1.1 - Changed icon from "kbabel" to "locale"
1.0 - Initial release
Ratings & Comments
5 Comments
It's better to use only po on sed for Dotted Directorys ;) [CODE] [Desktop Entry] ServiceTypes=application/x-gettext Actions=GenMoFile; Icon=kbabel [Desktop Action GenMoFile] Name=Generate MO file Name[it]=Genera file MO Name[de]=Erstelle MO Datei Icon=kbabel Exec=msgfmt %F -o "`echo %F | perl -pe 's/\.po$//'`.mo" X-KDE-Priority=TopLevel [/CODE]
Could it be possible to add a copying function so the file will be copied to /usr/share/locale?
cut, copy and paste aren't enough?
what are MO and PO files?
PO stands for “Portable Object”. PO files contain sets of strings which associate each translatable string with its translation in a particular language. A single PO file relates only to one language. A PO file is derived from an POT file. MO stands for “Machine Object”. A MO file contains binary data suitable for reading by computers. The contents of a MO file are organised as a database to minimize the lookup time for translated strings.