Forums / Translation / A new language or locale ? / A proposal: some tools to help with translations

A proposal: some tools to help with translations

Author Message

Gaetano Giunta

Tuesday 08 February 2011 6:41:04 am

I'd like to code some helper scripts for ts files.

examples:

1. check that any tokens found in source are present in translation (often the tokens get translated too, and it does not work)

2. check that all sources in file A exist in file B and if not merge them

2b. remove from file B all sources not in file A

Shall I add a 'tools' section in the svn of the translation project, or shall I create a new extension?

Also, any more requests? No, asking for ezlupdate in php does not count (the good Gunnstein has already done it!)

Principal Consultant International Business
Member of the Community Project Board

Tony Wood

Wednesday 09 February 2011 1:36:10 am

Hi Gaetano,

I think more tools for developers is a must. It needs to be easier to spot changes and also create in the first place.

I search for a while and could not find an up-to-date article on "How to translate". Did I miss it?

As most translators are not technical a web based system or simple interface that does not require installation etc. Would be brilliant as it would ease the whole thing for all.

What do you think?

Tony

(update: I just found it here http://projects.ez.no/ezpublish_translation)

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bertrand Dunogier

Wednesday 09 February 2011 2:52:54 am

Hi Tony.

It ain't official (yet ?), but we have a project on crowdin for collaborative, simple online translations: http://crowdin.net/project/ezpublish

Feel free to register and have a look. Performances of crowdin.net aren't great, and I hope they'll get fixed, but the system is quite good.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Gaetano Giunta

Wednesday 09 February 2011 4:18:05 am

I guess moving to an online collaborative translation platform might be beneficial - at least we do not have time to waste implementing it ;-)

The tools I am proposing might be orthogonal to such a move (eg. one to check for correct tokens in translated files, and coherence of base translation file with localized version), while some other might not be (eg. one to merge new translations with old versions, if the main source is now in a db).

I just want to make sure the online platform is nice enough to be on par with qt-linguist, has some chances of surviving for a couple of years, and is open enough to have sso / other integration scripts grafted to.

Did you give a look at transifex btw?

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Wednesday 09 February 2011 5:19:34 am

ps: another requisite: manage translation of extensions too.

Principal Consultant International Business
Member of the Community Project Board

Tony Wood

Wednesday 09 February 2011 8:52:21 am

Hi,

@Bertrand

The online translation is great for the main .TS file, will it handle bespoke fields we need on a project? anyway we can use it for that?

Do you know if it will be ready soon, we are producing our translation within the next month so need to be quick to get going.?

@Gaetano

Management tools for this process are really useful so if Crowdin has an API stats and other tools might really help.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Gaetano Giunta

Friday 11 February 2011 1:19:25 pm

Fyi, I just created a new extension on projects.ez.no. Will start out with a couple of php scripts...

Principal Consultant International Business
Member of the Community Project Board

eZ debug

Timing: Jan 29 2025 13:38:19
Script start
Timing: Jan 29 2025 13:38:19
Module start 'content'
Timing: Jan 29 2025 13:38:19
Module end 'content'
Timing: Jan 29 2025 13:38:20
Script end

Main resources:

Total runtime0.1346 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.3359180.7422
Module start 'content' 0.00660.0052 769.0781103.1641
Module end 'content' 0.01190.1227 872.2422536.2109
Script end 0.1346  1,408.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00322.3943200.0002
Check MTime0.00130.9789200.0001
Mysql Total
Database connection0.00110.802910.0011
Mysqli_queries0.092668.80361410.0007
Looping result0.00100.77841390.0000
Template Total0.122490.910.1224
Template load0.00070.499210.0007
Template processing0.121790.378910.1217
Override
Cache load0.00050.352710.0005
Sytem overhead
Fetch class attribute can translate value0.00060.473910.0006
XML
Image XML parsing0.00020.161110.0002
General
dbfile0.00654.8590200.0003
String conversion0.00000.004230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs