/srv/irclogs.ubuntu.com/2013/01/11/#ubuntu-app-devel.txt

phanimaheshdpm: I have a problem with launchpad translations.11:33
phanimaheshhave a few minutes to spare?11:33
dpmhi phanimahesh, sure11:33
phanimaheshIt all started with our grand rename.11:34
phanimaheshmechanig was renamed to unity-tweak-tool11:34
phanimaheshand so in the next update, launchpad picked up the renamed translation template and added as a new one.11:34
phanimaheshthe problem is, i essentially lost existing ones.11:35
phanimaheshand lp people say it is too late to correct it on launchpad.11:35
phanimaheshhttps://answers.launchpad.net/launchpad/+question/21883911:35
phanimaheshany ideas?11:35
dpmyes, but let me have a look first11:36
dpmphanimahesh, ok, so I think we'll go with what jtv is suggesting on his answer. The first step is to export those translations from Launchpad into your branch. Let me set that up in a minute.11:43
phanimaheshdpm: the files have to be moved anyway, so I got a tarball of the old template Now renaming the files and editing them to use the new domain, placing them in proper folders, pushing, allowing lp to update, then pushing updated pot.. will this sequence work?11:46
dpmYeah, that'd work too. Note that you won't have to rename any files. The names of the PO files should stay the same. Just commit the PO files you've got in the template, push them and make sure that the POT template in the po/ folder you push.11:49
dpmis the correct one11:49
dpmi.e. unitytweak.pot11:49
dpmphanimahesh, ^11:50
phanimaheshso all po files stay the same, except that they are moved?11:50
phanimaheshand should the pot be the old one or can it be the new version?11:50
phanimaheshdpm, ^11:51
dpmphanimahesh, just make sure:11:52
dpm- All the po files are under the po/ folder, and that the POT file is in there too11:52
dpm- All the PO files are named according to $ISOCODE.po (or in some cases $ISOCODE_COUNTRY.po), e.g. en_GB.po, it.po, ca.po, de.po, etc11:53
phanimaheshokay. they are currently mechanig_ISOCODE.po11:54
phanimaheshso that means I'll have to rename.11:54
phanimaheshstripping out mechanig11:54
dpmah, yeah, in that case you'll need to rename them, exactly11:54
dpmAnd finally,11:54
phanimaheshand the pot can be the updated unitytweak.pot11:55
dpm- It does not matter which version of the POT file you've got in there. You can update it any time and Launchpad will pick up the changes. Simply update the POT file with 'python setup.py build_i18n', commit and push11:55
phanimaheshsure. thanks. btw, the distutilsextra branch is waiting to be merged. thanks for reminding me.11:56
phanimaheshdpm Thanks, that worked, except that lp needs me to set language code and template for each imported po file. Thats much much easier than manual merging. :D13:05
dpmphanimahesh, that might have been because LP still got confused by the 2 templates. You shouldn't have to do this anymore (i.e. manually setting the code)13:06
phanimaheshyup. you saved me. thanks.13:08
dpmphanimahesh, when Launchpad has finished importing all translations into the unitytweak template, I'd recommend the following:13:29
dpm1. Go to https://translations.launchpad.net/unity-tweak-tool/trunk/+translations-settings13:29
dpm2. Set the import settings to "Import template files"13:30
phanimaheshThanks. I'll change it once lp is done importing.13:31
dpm3. Set up translation exports: On the "Export translations to branch" section, click on the "Choose a target branch" link and set the export branch to be the same as the import branch13:31
dpmthis way you'll have translations fully automated, and the only thing you'll have to worry about is to update and commit the POT file from time to time13:32
dpmthat is, whenever you think new strings are ready to translate13:32
phanimaheshdpm: won't the translations be overwritten every update?13:32
phanimaheshlp updates from the git repo every 5 hours.13:33
dpmphanimahesh, ah, I thought the branch you used for translations was a different one from the one auto-imported from git?13:33
phanimaheshnope. so I'll set up a different branch to push the translations to.13:34
dpmin that case, I'd recommend simply setting the auto-export to a different bzr branch, and then manually merge the bzr branch with the fresh translations to github13:34
dpmyou can leave the import branch as it is in the export settings13:35
dpmsorry, mistake: you can leave the import branch as it is in the *import* settings13:35
phanimaheshokay. will make the changes now.13:37
dpmsuper13:42
phanimaheshjust figured out why lp got confused. I spelled it wrong in my loop. all files have wrong name. thankfully suffixes (lang codes) are preserved. result : automated work became manual.13:45
phanimaheshI feel like an idiot now. :/13:46
dpmphanimahesh, argh, sorry to hear that. Is everything sorted now?15:48
phanimaheshdpm: Yup. everything is sorted. I dont have port 22 open from here, so will have to create the export branch tomorrow when I go to the institute area. except that, everything is sorted.16:10
=== davidcalle_ is now known as davidcalle
akyanyone?22:34

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!