Everything related to the Czech translation of Tiki Feature »  TikiTranslation

LanguageCzech

Tiki in Czech


Here we discuss everything related to the Czech translation of Tiki.





Using JEdit and regexps for translation

You can use JEdit and its Search and Replace feature to make the process of translation much easier and faster. Amongst the common text match and replace you can search strings using more powerful regular expressions and replace the matches with a so called BeanShell snippet. I'm using for example this setting in the Search and Replace dialog (Ctrl+F):

Example 1

Search for:
this ([^\" ]*)",

Replace with: Return value of a BeanShell snippet
" tuto (tento/toto) "+_1+"\","

Search in: Current buffer
Settings: Keep dialog, Regular expressions
Direction: Auto wrap

Then I do prefer to control visually what's happening by clicking "Find" button first and then "Replace & Find" until all matches are replaced or you can click "Replace All" when you're sure what you're doing wink.

This example will match all untranslated strings on lines such as:
// "monitor this map" => "monitor this map",
// "stop monitoring this map" => "stop monitoring this map",
// "Edit this genre:" => "Edit this genre:",

and replace them with:
// "monitor this map" => "monitor tuto (tento/toto) map",
// "stop monitoring this map" => "stop monitoring tuto (tento/toto) map",
// "Edit this genre:" => "Edit tuto (tento/toto) genre:",

Another example:

Search for:
"admin ([^\"]*) tpl",

Replace with:
"\"nastav tpl pro "+_1+"\","


This example will do e.g. the next:
// "admin cache tpl" => "nastav tpl pro cache",
// "admin Banners tpl" => "nastav tpl pro Banners",
// "admin live support tpl" => "nastav tpl pro live support",
etc.




Contributors to this page: Torsten2431 points  , luci4547 points  , gezza3309 points  , gorn10 points  and docekal71 points  .
Page last modified on Wednesday 15 June 2011 08:13:22 CEST by Torsten2431 points .

Switch Language

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki

Shoutbox

Torsten2431 points , 14:06 CEST, Sun 22 Apr. 2012: Next Webinar at Thursday, 17th of May 2012 (21:00 UTC)at http://tiki.org/live
Torsten2431 points , 11:43 CEST, Tue 10 Apr. 2012: Next Webinar at Thursday, 19th of April 2012 (21:00 UTC) at http://tiki.org/live
Jyhem2569 points , 13:07 CET, Fri 16 Mar. 2012: What happened to the BBB room ?
Torsten2431 points , 01:44 CET, Sat 25 Feb. 2012: Next Webinar at Thursday, 15th of March 2012 (21:00 UTC) at http://tiki.org/live
Torsten2431 points , 13:29 CET, Fri 10 Feb. 2012: Next webinar at Thursday, 16. of Feb. 2012 (21:00 UTC) at http://tiki.org/live