To easily obtain all translationsfiles for a given release

Josef Andersson josef.andersson at gmail.com
Sun Sep 21 17:18:37 UTC 2014


Den 2014-09-21 12:40, David Planella skrev:
> Hi Josef,
> 
> Not all translatable files are available in the language packs export, as some of them need to be loaded before language packs are available (e.g. the installer).

> However, it surprises me that the list is 40 packages long. Could you show us exactly which translation files you're missing, and then I can perhaps give you a better answer?

Sure, I can at least list some of them. I've only noticed the  https://translations.launchpad.net/ubuntu/utopic/+source/ubiquity/+pots/ubiquity-debconf/sv/+translate file is missing, because that was the one I was looking for, however - I did a quick compare with the filenames of the 460 po-files to the ones mentioned as translatable and found some others.For anyone wanting to check this out, all that is needed is to compare the list for the 14.10 release https://translations.launchpad.net/ubuntu/utopic/+lang/sv (your lang of course) and compare it to the number of po files in your base lang pack 
https://translations.launchpad.net/ubuntu/utopic/+language-packs

Some examples 
apt-all
ciborium
click
componentshowcase
debian-installer
debian-installer-help
desktop-kde-config-whoopsie
desktop-kubuntu-web-shortcuts
edubuntu-live
gccxml
gsettings-ubuntu-touch-schemas
indicator-transfer
kcm-driver-manager
kcm-whoopsie
kubuntu-patched-l
langpack-installer
libcwidget
libfriends
mcs
oxide
plainbox
software-center-doc
stubbox
sync-monitor
ubiquity-debconf
ubiquity-desktop
ubuntu-help
ubuntu-system-settings-online-accounts
> Other than the options that I've already explained, there is no other alternative that I know of.
> 

Yes, I understand that packages missing may have valid reasons from the technical point of view of where they are used, but from the translators view it would be a nice feature to just download all listed as translatable in one go - for consistency greps and other stuff :)

Thanks for taking the time to answer David, I'll put in a feature request for this in launchpad.

Best
/Josef
> Cheers,
> David.
> 
> On Sat, Sep 20, 2014 at 10:15 PM, Josef Andersson <josef.andersson at gmail.com <mailto:josef.andersson at gmail.com>> wrote:
> 
>     Thanks for the answer David! The base pack download (method 2) is what I was doing, but then it's missing a few files, like the installer
>     (ubiquity and friends) even though they are listed as translatable packages for the 14.10 release https://translations.launchpad.net/ubuntu/utopic/+lang/sv
>     500 files compared to 460 in the base pack download. For whatever reason (being installer or something else) they are not included in the base pack download I think
>     life would be easier if there was a way to download *all* items corrensponding to the list of translatable items for a distribution as one zip in launchpad. As of now, that use case doesn't seem possible then?
> 
>     /Josef
> 
>     Den 2014-09-20 17:46, David Planella skrev:
>     > On Fri, Sep 19, 2014 at 3:09 PM, Josef Andersson <josef.andersson at gmail.com <mailto:josef.andersson at gmail.com> <mailto:josef.andersson at gmail.com <mailto:josef.andersson at gmail.com>>> wrote:
>     >
>     >     Hello fellow translators!
>     >
>     >     I would like to be able download all language files listed as translateable for 14.10 at once. Why? To be able to grep in them, so that the translations of certain key words stays the same.
>     >     Also, it would make it easy to find translation bugs, when I don't know in which package they are - in launchpad you can't search all files in a language at once (
>     >     as far as I know).
>     >
>     >     I asked a question about it, and got the "why" to as why all not language files are in the base pack.https://answers.launchpad.net/ubuntu-translations/+question/254729
>     >     Are the any other easy way to download them all in one go?
>     >
>     >
>     > Hi Josef,
>     >
>     > You've got two options:
>     >
>     > 1. Use the translations-search tool. You can install it from the Ubuntu Translations Coordinators PPA
>     >
>     > sudo add-apt-repository ppa:ubuntu-translations-coordinators/ppa
>     > sudo apt-get update && sudo apt-get install ubuntu-l10n-tools
>     >
>     > Examples:
>     >
>     > translations-search --help # Shows the tool's options and help
>     > translations-search gat # Searches for string 'gat' in the translations installed for the user's language
>     > translatons-search --original cat # Searches for string 'cat' in the original English strings for the translations installed in the system
>     > translations-search "espai de disc" # Search translations for a sentence
>     > translations-search "@[\w.]+" # Use Python regex expressions to search for translations (in this case an e-mail-like string)
>     >
>     > 2. Alternatively, download all po files from the language pack exports from Launchpad -> https://wiki.ubuntu.com/Translations/KnowledgeBase/Exporting#Getting_all_translations
>     >
>     > I'd recommend option 1, as it's much easier.
>     >
>     >
>     >     I wish Canonical had something like Microsoft has here: http://www.microsoft.com/Language/en-us/Search.aspx?sString=terms&langID=sv-se
>     >
>     >
>     > Nothing should stop anyone from contributing something similar if they see it could benefit the work of translators.
>     >
>     > In any case, I hope this helps!
>     >
>     > Cheers,
>     > David.
>     >
>     >
>     >
>     >     --
>     >     Vänligen / Best regards
>     >     Josef Andersson
>     >
>     >
>     >     --
>     >     ubuntu-translators mailing list
>     >     ubuntu-translators at lists.ubuntu.com <mailto:ubuntu-translators at lists.ubuntu.com> <mailto:ubuntu-translators at lists.ubuntu.com <mailto:ubuntu-translators at lists.ubuntu.com>>
>     >     https://lists.ubuntu.com/mailman/listinfo/ubuntu-translators
>     >
>     >
> 
> 
>     --
>     ubuntu-translators mailing list
>     ubuntu-translators at lists.ubuntu.com <mailto:ubuntu-translators at lists.ubuntu.com>
>     https://lists.ubuntu.com/mailman/listinfo/ubuntu-translators
> 
> 





More information about the ubuntu-translators mailing list