| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 14286|Reply: 15
Collapse the left

In Arabic is different !

[Copy link]

 Palestine

Post time: 2013-08-17 17:13
| Show all posts |Read mode
تم تعديله بواسطة  khalid في  2013-8-17 22:19

Hi 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 " ?



Explanation  for last question :-

(THE  1ST 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







This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Palestine

 Author| Post time: 2013-08-17 23:20
| Show all posts
up up up
Post time: 2013-08-19 01:54
| Show all posts
's you will find in language file. I am working with polish language and I hid this feature, because it's not necessary.

 Russia

Post time: 2013-08-19 12:47
| Show all posts
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




 Palestine

 Author| Post time: 2013-08-19 15:15
| Show all posts
vot 2013-8-19 11:47
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

 Russia

Post time: 2013-08-19 15:25
| Show all posts
but don't forget there many cases like this

I know,
but we can find that only together...

 Palestine

 Author| Post time: 2013-08-19 15:39
| Show all posts
vot 2013-8-19 14:25
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 !

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2013-08-19 15:57
| Show all posts
1) Need URL and explanation WHERE is it
2) Need ENGLISH view too for feel the difference

 Palestine

 Author| Post time: 2013-08-19 16:03
| Show all posts
vot 2013-8-19 14:57
1) Need URL and explanation WHERE is it
2) Need ENGLISH view too for feel the difference

1) Codersclub not active this function  so 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

 Russia

Post time: 2013-08-19 16:08
| Show all posts
Codersclub not active this function  so no demo

1) Any link is good! Even from localhost!
2) SMALL screenshot is bad, impossible to understand WHERE the problem.

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-21 18:22 GMT+3 , Processed in 0.092990 sec., 12 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list