Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:doc:qt_translation_cs [24/10/2009 01:33] – xavier | en:doc:qt_translation_cs [20/11/2014 14:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Qt translation to czech ====== | ||
+ | ===== The story ===== | ||
+ | |||
+ | Pavel translated the Qt libraries strings without knowing it. We now try to send this huge contribution to Nokia via [[http:// | ||
+ | ===== Useful links ===== | ||
+ | |||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | ===== Howto ===== | ||
+ | ==== First steps ==== | ||
+ | Installing Git under Debian: <code bash> | ||
+ | # installing Git | ||
+ | aptitude install git-core | ||
+ | |||
+ | # Configuring Git | ||
+ | git config --global user.name " | ||
+ | git config --global user.email " | ||
+ | </ | ||
+ | |||
+ | Getting a working directory: | ||
+ | <code bash> | ||
+ | # read-only access | ||
+ | git clone git:// | ||
+ | # if you have a write access to the Gitorious repository | ||
+ | git clone git@gitorious.org: | ||
+ | # Extra configuration, | ||
+ | cd czech-translation/ | ||
+ | git config commit.template .commit-template | ||
+ | </ | ||
+ | |||
+ | If you wish to work in the czech-translation branch (and believe me, you do want to work in the czech-translation branch), do the following: | ||
+ | - at first, you have only one branch: '' | ||
+ | - however, '' | ||
+ | * master | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | </ | ||
+ | - Check out the czech-translation branch: '' | ||
+ | Branch czech-translation set up to track remote branch czech-translation from origin. | ||
+ | Switched to a new branch ' | ||
+ | </ | ||
+ | - Check the branch you are now working on: '' | ||
+ | * czech-translation | ||
+ | master | ||
+ | </ | ||
+ | |||
+ | If by chance you have cloned from the read-only URL ('' | ||
+ | < | ||
+ | by | ||
+ | < | ||
+ | in the '' | ||
+ | |||
+ | You can check this by doing: '' | ||
+ | < | ||
+ | * remote origin | ||
+ | Fetch URL: git@gitorious.org: | ||
+ | Push URL: git@gitorious.org: | ||
+ | HEAD branch: master | ||
+ | Remote branches: | ||
+ | 4.5 | ||
+ | 4.6 | ||
+ | 4.6-stable | ||
+ | czech-translation tracked | ||
+ | master | ||
+ | master-stable | ||
+ | Local branches configured for 'git pull': | ||
+ | czech-translation merges with remote czech-translation | ||
+ | master | ||
+ | Local refs configured for 'git push': | ||
+ | czech-translation pushes to czech-translation (up to date) | ||
+ | master | ||
+ | </ | ||
+ | Note that the last lines indicate you where '' | ||
+ | ==== Importing the current translations ==== | ||
+ | |||
+ | === Qt Translations === | ||
+ | <code bash> | ||
+ | # Get into the working directory | ||
+ | cd czech-translation/ | ||
+ | |||
+ | # put the holy .ts file somewhere: | ||
+ | cp / | ||
+ | |||
+ | # change to the src directory | ||
+ | cd ../src | ||
+ | |||
+ | # update the qt_cs.ts file | ||
+ | lupdate-qt4 -locations relative -no-ui-lines 3rdparty/ | ||
+ | </ | ||
+ | |||
+ | This last command should output something like: | ||
+ | < | ||
+ | [01: | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | Scanning directory ' | ||
+ | / | ||
+ | |||
+ | Updating ' | ||
+ | |||
+ | Found 1825 source text(s) (488 new and 1337 already existing) | ||
+ | Kept 14 obsolete entries | ||
+ | Same-text heuristic provided 21 translation(s) | ||
+ | |||
+ | [01: | ||
+ | |||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # add our new .ts file for versionning | ||
+ | cd .. | ||
+ | git add translations/ | ||
+ | |||
+ | # adds the cs language to translations/ | ||
+ | grep -E ' | ||
+ | </ | ||
+ | |||
+ | ==== Commit our work ==== | ||
+ | <code bash> | ||
+ | # check the modifications in the local repository | ||
+ | git status | ||
+ | git diff --cached translations/ | ||
+ | |||
+ | # commit the modifications in the local repository | ||
+ | git commit | ||
+ | # Change the email address if needed, write a commit message | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # now, let's update the remote repository | ||
+ | git push origin czech-translation | ||
+ | </ | ||
+ | |||
+ | This last command should ouput: | ||
+ | < | ||
+ | Counting objects: 9, done. | ||
+ | Delta compression using up to 2 threads. | ||
+ | Compressing objects: 100% (5/5), done. | ||
+ | Writing objects: 100% (5/5), 12.17 KiB, done. | ||
+ | Total 5 (delta 4), reused 0 (delta 0) | ||
+ | => Syncing Gitorious... [OK] | ||
+ | To git@gitorious.org: | ||
+ | | ||
+ | </ |