Development/EasyHacks/Translation Of Comments

Easy Hack - Translate Comments from German to English
You find the description of this Easy Hack in the corresponding.

If one directory is finished, please write on this site.

Getting started
Note: You can use the Gerrit UI to edit the source files. Go to Projects->List->core and click "Create Change". Select the branch "master" and enter a commit message like "Translate German comments". Then click the "Edit" button and add the files you want to translate.

We have a script in  called find-german-comments, that helps you find German comments. Be sure to download the directory  as well.

Here is an example on how to use it: ~/git/libreoffice/rawbuild/starmath$ ~/git/libreoffice/bin/find-german-comments -v &gt; german-comments.txt processing file 'inc/action.hxx'... processing file 'inc/applicat.hxx'... processing file 'inc/config.hxx'... (...)

The file  will contain the file names and line numbers where German comments were found. You can run the script in any directory and it'll check the hxx/cxx files under that directory recursively (this can be handy in large modules, as guessing the language of a comment takes some time). If you want only the file names, use the  option instead of.

Note that it only checks comments that are 4 characters or longer, which might miss some shorter ones. Also, logging and error messages are not detected yet. You can translate them as well.

If you have problems with the script, poke vmiklos.

If you add this to your  you can search for German comments anywhere in the codebase using   instead of the path to the tool every time: alias fgc='${HOME}/Documents/Projects/libo/bin/find-german-comments'

If you want to save some time, there is now a text document listing all of the directories containing German comments so that you don't have to parse through the entire core. Because this may be out of date, double check the above table before assigning yourself to a directory to make sure nobody else is working on it or has already completed it. It's a good place to start if you're not sure where to go hunting down the comments.