Re: [Tiki-devel] How to create RTL translations?

Bernard Sfez via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hello and welcome to the party ! 😂

It is quite sometimes I didn’t play with code, Hebrew and ascii.

Some leads; 
Find “your” editor. For exemple I find out that macOSX textedit (once Hebrew selected) work quite well and allow copy/paste.
From a discussion with Jonny and seen the cursor changing direction, PHPstorm now support RTL languages.
Sometimes you need to do things manually (write 1% instead of %1)
Avoid at all cost a last ACSII-latin character at the end of an rtf line (end bracket of parentheses are pain)

But more something like we can discuss if you want. (End of the next TRM ?)

B


> On 11 Jan 2022, at 22:26, Fabio Montefuscolo <[email protected]> wrote:
> 
> Hello,
> 
> (specially eastern folks)
> 
> Recently, I got super confused when trying to help a girl from Pakistan to add translations to Tiki. Urdu is a language written from right to left. Just this aspect of the language is enough to short circuit my little brain.
> 
> At least on Vim, I am struggling a lot to add placeholders into Urdu messages. For example, in the middle of all that Urdu symbols, I need to insert the ascii symbols %d. When I try that, it changes the flow to LTR and split the phrase.
> 
> Does that also happen to Hebrew (@bernard), for example? If yes, how do you (@bernard❤) are doing to add placeholders like %d, %s, etc.
> 
> # Messy scenario 1:
> ## Steps to confusion using the string "moved %d images, %d errors occurred":
> 1. Go to https://www.translator.eu/english/urdu/translation/ <https://www.translator.eu/english/urdu/translation/> (google translator is not working for me)
> 2. Paste "moved %d images, %d errors occurred" in the english field
> 3. The result should be something like "منتقل کردہ ٪ڈی تصاویر، ٪د نقائص واقع ہوئے"
> 
> Question: Where to replace %d ??
> 
> 
> # Messy scenario 2:
> ## Steps to confusion using the string "moved %d images, %d errors occurred":
> 1. Go to https://www.translator.eu/english/urdu/translation/ <https://www.translator.eu/english/urdu/translation/>
> 2. Paste "moved ## images, ## errors occurred" in the english field
> 3. The result should be something like "منتقل ## تصاویر، ## غلطیاں واقع ہوئیں"
> 4. Replace ## by %d
> 5. Then you get "منتقل %d تصاویر، %d غلطیاں واقع ہوئیں"
> 
> As you can see, the string is visually different. The chunks delimited by %d had the order changed. I am not sure if the meaning changes when I do that.
> 
> # Not so Messy scenario 3:
> ## Steps to confusion using the string "moved %d images, %d errors occurred":
> 1. Go to https://www.translator.eu/english/urdu/translation/ <https://www.translator.eu/english/urdu/translation/>
> 2. Paste "moved %0 images, %1 errors occurred" in the english field
> 3. The result should be something like "منتقل کیا گیا ٪0 تصاویر، ٪1 نقائص واقع ہوئے"
> 4. Replace ٪ by %.
> 5. Then you get "منتقل کیا گیا %0 تصاویر، %1 نقائص واقع ہوئے"
> 
> Here, the translations seems to be similar to the first case, but it is a bit easier to work with.
> 
> 
> Any hint is welcome!
> Cheers
> 
> 
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.