Sunday, July 10, 2011

RFC: i18n extraction of desktop-like files

This is a RFC for an idea I want to implement in l10n trunk. I think it will make it easier for us i18n dudes and should not affect (or maybe even should help) the developers.

At the moment if you want to have translations in a file that is ".desktop like" but does not have one of the extensions we extract by default (that is *.directory *.desktop *.desktop.cmake *.kimap *.themerc *.kcsrc *.setdlg index.theme *.notifyrc *.protocol *.profile *.actions) you need to go to l10n-kde4/scripts/findfiles and add a line like
find $BASEDIR/`get_path kdebase_kde-workspace`/khotkeys -name \*.khotkeys -print >> $filelist

My suggestion is move the responsibility of listing those files from l10n-kde4/scripts/findfiles to a file in the program itself (that is, a file in similar fashion to This serves various purposes:
* Make the developer know there is something he needs to keep updated (it's not the first time people move or delete files and the l10n-kde4/scripts/findfiles get outdated)
* Make it easier for l10n maintainers to move things between l10n trunk and l10n stable, since the things are more autocontained and we do not need to worry about what in findfiles will get outdated or not, or might be reintroduced later if someone decides they need a stable branch

So all in all seems a win/win situation for me. What do you guys think?


Kevin Krammer said...

Sounds like a great idea to me.

If you go along with this, make sure to add a sample file to the KAppTemplate templates.

Albert Astals Cid said...

It's in!