-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin: Translate Piwik in your own language with this easy to use plugin #5591
Comments
How should it work? (first see attached screenshot) |
Maciej, sounds good to me. |
Basic functionality of plugin implemented. We can start translating Piwik into as many languages as possible :) |
Sounds very well, but how to commit the new language to svn? |
It is work for translator coordinator http://piwik.org/blog/2008/05/piwik-is-looking-for-a-translator-coordinator-be-part-of-the-piwik-team/ basically after translating new language execute: ``` and send lang.patch to the translator coordinator |
Yes, mauser this is the way we would do. But what about these users who wants to translate and do not know svn? |
mauser, I agree with maetrus, we would need a “Export all languages files to ZIP” link, that would create a ZIP of all the languages files in the right directories so that we only have to extract this zip on the piwik root folder, and everything would go in place. mauser, do you reckon you can add this feature? :) |
mauser, I removed your function to create directories in Piwik.php because it was only used by your plugin. Please move it instead in your plugin class. Please attach your plugin files in a .zip on this ticket, instead of attaching the patch. I committed your other changes and they are available in the 0.1.8 release. |
Please give also a look to the tool used by the RoundCube guys: [http://translator.roundcube.net] I find it very useful and easy to use. |
I attach plugin as a .zip file. I will add export feature tomorrow. |
new version with import/export feature, unzip file TranslationsAdmin.zip in your plugins/ directory and activate plugin |
Maybe overkill, but a very good tool http://drupal.org/project/l10n_server. |
How to activate the new language? |
maetrus, at the moment you have to change the setting by hand. |
Im new at piwik. im already there to improve the language german and french. but i like to do more. |
Not working, see #5764 |
Maintaining this plugin is now high priority. |
if you got problem with the plugin please update to current trunk version of Piwik |
Replying to [mauser](comment:18): > if you got problem with the plugin please update to current trunk version of Piwik |
I made some minor modifications. It is working with r640 on my system. |
just to let you know, we published a new version today: the 0.2.12 that includes the language drop down selector and lots lots of bug fixes. Hopefully the translator plugin is working on this version. good luck all translators! thank you for your great job :) |
It’s not working with r685 (r686, version tag 0.2.16). When it’s active, all the administration menus disappear. PS: I’ve got a new version of the Catalan translation, which I sent to translations[at]piwik[dot]org on 29th Oct but hasn’t been updated on SVN. |
working like a charm with 0.2.17 |
Hi all. I have problem translating UserCountry plugin. Everything before UserCountry_country_sc (Seychelles) can be translated (and saved) but from this point on translation is not saved. I am not getting any error or warning displayed so I can’t tell what’s wrong. I am translating Piwik 0.2.23. |
benke, I updated my translation on 0.2.23 and the plugin worked great (I chose |
The same version as you but I didn’t chose all translations, I choose only UserCountry plugin but behaviour is same – the country names from Seychelles on can’t be translated. I can download language file, edit in editor (translate Seychelles and so on), upload it, open in TranslationsAdmin pluign and everything looks fine. If I just save this translation (without editing from within plugin) all remains intact. If I decide to translate further and save, the new translations will be lost :( |
I finished translation locally and then uploaded it onto the server. Will test it and tweak next few days and then will send final version to Noah – the Serbian translation of Piwik :) Regarding issue I had with this plugin, the only thing that come on my mind so far is that, because UserCountry plugin have lot of strings to translate, it may be that there’s no enough memory to save it so translation is truncated. I will try to fiddle the allowed memory or what it is called parameter and then let you know. |
In #1015, manne reports: See attachment. |
Replying to vipsoft:
I also fixed the vertical alignment of the first 2 columns to style="vertical-align: top;" |
Comment to translation-plugin-patch.txt above:
PS! Patch tested with Piwik 0.4.3 . |
Anthon, agreed with most of your points!
I'm not sure about this one, I would leave the translator the freedom to create a new language (hard for us to make sure all languages are in the list, better rely on the translator to input the ISO code, english name, local name, etc.).
The advantage of the translator plugin is that translators can see their work directly in the Piwik UI, they don't need to copy paste the translation file in piwik/lang/ - I think it's better to keep the translations in piwik/lang/ An alternative way to deal with #1245 is to let all translators know (by email, or in the translator plugin?) that the file integrity fail is expected for them, and that they can ignore it. Also, one of the issues currently with translations is multiple translators working on an update at the same time (time being a large range of several weeks), their work overwriting other's work, etc. One solution to ensure all translators always work on the latest language file version would be to install a "test" piwik install on piwik.org, that would have the translator tool installed, and have a login created for each translator. They could then easily login and modify the most up to date version of the translation. What do you think? |
re: ISO code and language names. This is just a proposal. The implementer can decide if it's doable. re: #1245. If we keep the working-translation in piwik/lang, I would suggest that the TranslationsAdmin plugin also save a backup of theworking copy. On more than one occasion, we've received a complaint from a translator that they've lost their work. (outofscope: resolving merge conflicts) re: "test" install. You'll have to run this past Noah and the translation team, but a centralized server for editing translations and live testing is a good idea. There would still be some logistics to work out (e.g., syncing up with svn) and allowing non-superuser access to the TranslationsAdmin plugin. |
Thanks mauser for the update, but please try repacking that .zip as it contains unwanted data:
|
halfdan: Thanks for noticing. Repacked without unwanted data. |
THe Plugin seems to have a bug:
The problem obviously is, that adding a language only creates an empty $translations array. But when loading the languages the Plugin tries to read the index General_OriginalLanguageName. I added a small patch that can be applied to the current version. |
(In [2598]) * Updated Greek, German, Chinese translation
|
Attachment fixes issue with 0.6.4 (top_bar.tpl was producing an error). New feature: Dynamic filtering for empty textfields (using jQuery). Useful if only a few of thousand translations are missing. |
Bug report: the plugin seems to write setlocale(LC_TIME, 'nn_NO.UTF8'); in top of files but it shouldn't, as the setLocale is done by LanguagesManager |
Bug report from email: Hi! there is some problem with translation plugin. When i submit form, i see login page instead of staying on the same page. But i'm not logged out, because i can return to TranslationAdmin by typing URL without need to relogin and submitted translations are stored as should be. |
(In [3566]) * adding two new languages: Hebrew and Indonesian
|
It appears there is a bug when creating a new language: http://forum.piwik.org/read.php?2,72160 - work around is to create the file manually. |
I've fixed the issues in comment:47 and comment:52 in my repo, and will attach an update after I figure out comment:48. (I might include some other improvements while I'm at it.) (I was also thinking of commiting it into Piwik's svn, and modifying the build script to exclude it, but I'll probably use this as a test case for CI of external plugins.) |
I've attached the updated plugin using the refactored code in trunk. It is not compatible with Piwik 1.2.1 or earlier. Changes:
|
Found an issue with Piwik 1.3 using TA 1.2.2: Trying to export an Language: Fatal error: Class 'Piwik_Languages_Manager' not found in /www/vhosts/piwik.fubar.com/htdocs/piwik/plugins/TranslationsAdmin/Controller.php on line 403 I'll be happy to test any patches provided. |
Thanks morefx. I've uploaded an updated package. |
(In [4541]) refs #5591 - refactor for TranslationsAdmin exportLanguage |
Updated for trunk. If you're running vanilla Piwik 1.3, you'll also need this file: https://github.com/piwik/piwik/blob/master/4541/trunk/core/TranslationWriter.php |
Thanx vipsoft for the quick update. Works! Just for the record: |
Attachment: Translators user interface plugin - Piwik 1.6+ |
Updated the translations plugin for Piwik 1.6 (removed language import feature) |
From now on all translations should be done in : http://translations.piwik.org/ please register there. See also: http://piwik.org/translations/ |
UPDATE: PLUGIN DEPRECATED!
From now on all translations should be done in : http://translations.piwik.org/
please register there. See also: http://piwik.org/translations/
This plugin makes translating Piwik a very nice and easy process!
Instructions
- Download the plugin at: http://dev.piwik.org/trac/raw-attachment/ticket/171/TranslationsAdmin.zip
- Go to the Piwik UI, log as Super User, Install the plugin
- Go to the translator tab, update/create the new language file
- Test your translation in your Piwik with real data (if you need data, you can generate some by clicking on the API link at the top of the screen – there is a link on this page to generate fake data)
- Once you are happy with the translation and you believe it can be useful to other Piwik users, click on the export button in the plugin and submit to translations att piwik.org
Would you like to help updating an existing language or add a new language in Piwik? More info on the translations page: http://piwik.org/translations/
The text was updated successfully, but these errors were encountered: