In Arabic is different !
تم تعديله بواسطةkhalid في2013-8-17 22:19Hi all ,
I want to talk about some bugs need to fix just for arabic and (all rtl langs in future :))
the problem is (two word position) (words format )
In arabic some words position need to change
For example :-
In english and all LTR langs the format is " username's space " As above image
but in Rtl langs there no "'s" the format(must be in rtl)is "Space then username"
I mean in RTL the username come in the end not in starting ?
-----------
The question here how to make this ?!
Can we make it like " css function " ?
Explanationfor last question :-
(THE1ST FIX)
All lang words have values
so in template files
we will find (for example ) in default
{username} {space}
Why not use "if func." ?!
if rtl {space} {username}
else {username} {space}
Note : I know the original places and values
----------------------------------------------------
2- (The second fix)
use english format like arabic format e.g "the space of username"
Not recomended because there too many words need to fixed and some formats do not go with rtl and ltr in same time
up up up 's you will find in language file. I am working with polish language and I hid this feature, because it's not necessary. I can suggest only one universal code solution.
Do not use USERNAME and the rest of the sentence separately,
but use it TOGETHER in a single language variable with the username substituted.
In such case every language must have a special key. something like this:
EN: 'user_space' = '%s\'s space',
RU: 'user_space' = 'Space of %s',
AR: 'user_space' = 'Space: %s',
E.T.C.
%s here means a place where the username will insert.
This may be realized as a php code like this:
sprintf($lang['user_space'], $username);
OR
lang('home_index','user_space', $username);
Unfortunately it is not possible to do this in a template :(
static/image/common/user_online.gif vot static/image/common/clock.gif 2013-8-19 11:47 static/image/common/back.gif
I can suggest only one universal code solution.
Do not use USERNAME and the rest of the sentence sep ...
Ok , but don't forget there many cases like this some in php
and the other in template
but don't forget there many cases like this
I know,
but we can find that only together... static/image/common/user_online.gif vot static/image/common/clock.gif 2013-8-19 14:25 static/image/common/back.gif
I know,
but we can find that only together...
i know the most
this
before
after(must be)
format is ready (by me)just copmare with orginal file
and will see the different
this is NOT READY FOR mL !
1) Need URL and explanation WHERE is it
2) Need ENGLISH view too for feel the difference
static/image/common/user_online.gif vot static/image/common/clock.gif 2013-8-19 14:57 static/image/common/back.gif
1) Need URL and explanation WHERE is it
2) Need ENGLISH view too for feel the difference
1) Codersclub not active this functionso no demo
2) the problem in arabic version ( format)
so you can see the difference
in first img
format is " number - sec/min/hour - before " this is default and did not support arabic
in second img" before - number -sec/min/hour " this by me and support arabic
Note : "before" word is static
i hope you understand me
Codersclub not active this functionso no demo
1) Any link is good! Even from localhost!
2) SMALL screenshot is bad, impossible to understand WHERE the problem.
Pages:
[1]
2