| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 9947|Reply: 11
Collapse the left

I suggest other menu translation rule.

[Copy link]

 Korea, Republic of

Post time: 2012-02-16 03:38
| Show all posts |Read mode
Edited by ionobgy at 2012-2-16 07:56

Below  is this site's menu navigation setting method.
---------------------------------
menu name    menu id    
---------------------------------
Portal               1
Forum              2
....
Set_Home        sethome
....
Report              report
....
My Friends        friend
....
Blogs               blog
--------------------------------

And Space menu like "Blogs" "Album" "Doings" and Forum category name is not translated.

So, I suggest the other method although I don't know that such method is possible.
That method is to use {lang .....} tag at menu name field same as default discuz SEO rule and discuz source code.



I want that All navigation (header navigation, top navigation, footer navigation, personal navigation, space navigation) and Forum name will be  translated by above "lang tag" method

Example>

Header navigation


Top navigation


Space Navigation


Forum Menu setting


lang file setting
english:
'portal' => 'Portal',
'forum' => 'Forum',
'somemenu' => 'Some menu',
'othermenu' => 'The other menu,
'default' => 'Default',
'Set_Home' => 'Set As Home',
'Set_Favorite' => 'Set As Favotite',
'blog' => 'Blogs',
'album' => 'Album',
'discussion' => 'Discussion',
'introduction' => 'Introduction',
etc.

korean:
'portal' => '대문,
'forum' => '포럼',
'somemenu' => '어떤 메뉴',
'othermenu' => '다른 메뉴',
'default' => '기본',
'Set_Home' => '홈으로 설정',
'Set_Favorite' => '즐겨찾기 저장',
'blog' => '블로그',
'album' => '앨범',
'discussion' => '토론',
'introduction' => '소개',
etc.


Also I want to use multiple lang tag at one line and original discuz lang tag like blow.
"{lang default} {lang forum}"
"{bb_name} {lang introduction}"

and I want to use <img> tag at menu name field if posssible.
especially  in case of top menu navigation.
<img src="/images/home_icon.gif"> instead of "Set Home" .



Is the above method possible?
Please write your opinion.




This post contains more resources

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

x

 Russia

Post time: 2012-02-16 11:57
| Show all posts
Let's discuss this step by step!

1) You want to use mnemonic (verbal) menu identifiers instead of numeris ones used by default in the top menu.
I agree, verbal identifiers are more clean and understandable.
But there is a problem.
This numeric identifiers are used directly in the X2 code, it is very bad
There is a possibility to change this numeric identifiers to verbal values,
but it is a very hard job, because of a lot of places where it uses...

2) You want to use language variables to identify all the navigations.
But this is used allready!
All the identifiers are really the keys in the lang_setting.php!
The only difference is that this keys have a prefix "nav_".
If our community will agree, we can simple remove this prefix.

3) You want to place the language keys into "Navigation Name" field directly.
I do not think that this solution is very good.
Language key name can be not so clear for a webmaster, when the "Navigation Name" can be used with a national language and so will be clear to a webmaster.

4) You want all other settings be auto-translated.
I want this too!
I'm working with this...

5) You want to use icons instead of text strings.
It is not a problem right now!
Just replace the corresponding translation!
I.e. was "Add to favorites",
you can change this to '<img src=.... title="Add to favorites">'

 Korea, Republic of

 Author| Post time: 2012-02-16 12:21
| Show all posts
Edited by ionobgy at 2012-2-16 13:32
vot 가 2012-2-16 12:57에 등록
Let's discuss this step by step!

1) You want to use mnemonic (verbal) menu identifiers instead of n ...

My opinion is

1) I think so.
It's very hard job for previous translated language files.
And So, I suppose that Two method (one-numeric, other- mnemonic) is placed in same file when upgrading of the language file.

2)
Space menu as "Blog" "Album" "Share" "Doing" is not translated although nav_blog, nav_album, nav_share, nav_doing is setted in lang_setting.php.
Blogs or Album menu under Space menu  is "Blogs" "Album" in other  language mode in this site too.

3) Yes it is.Your opinion is more rational.
Just I guess that most webmaster or coder can understand  simple english word such as menu name.

4) Good job.
It is better method if possible.

5) I cannot change Top navigation menu's ID.
and Name field do not support <img> tag.

Thank you for your attention and response.

 Russia

Post time: 2012-02-16 14:08
| Show all posts
Name field do not support <img> tag.

You did not understand.
I means not the field name,
but the language variable!!
For example:
I have changed translation for 2 top-navigation links in ENGLISH language:
        'nav_sethomepage'        => '<img src="static/image/common/home.gif" title="Set as Homepage">',//'设为首页',
        'nav_setfavorite'        => '<img src="static/image/common/fav.gif" title="Add to Favorites">',//'收藏本站',

You can see a result at the top-left corner of this page.

 Korea, Republic of

 Author| Post time: 2012-02-16 14:20
| Show all posts
Edited by ionobgy at 2012-2-16 15:44
vot replied at 2012-2-16 15:08
You did not understand.
I means not the field name,
but the language variable!!

Yes, I see. I misunderstand.
Thank you.

And one more question.
Is another img tag top menu possible to add?
except built in menu--setfavorite and sethomepage.
I cannot set top menu ID field in my website.
I cannot add the other img tag menu or activate multilingiual name at top menu except above 2 menu.
I  did add mail icon  by direct setting of mysql database code  in my website obgy.or.kr.
I think that My method is not correct method.
What method is correct?
Please help me.

P.S
I am a korean and not well in Enlgish.
Therefoe please forgive me for my bizzare or inappropriate expression.

 Russia

Post time: 2012-02-16 15:53
| Show all posts
Do not worry, my English is bad too!
Is another img tag top menu possible to add?

Any link used in "lang_setting" may be used as image.
I cannot set top menu ID field in my website.

Why?

 Korea, Republic of

 Author| Post time: 2012-02-16 16:04
| Show all posts
Edited by ionobgy at 2012-2-16 17:08
vot replied at 2012-2-16 16:53
Do not worry, my English is bad too!  

Any link used in "lang_setting" may be used as image.

Please add 3rd icon image at top navigation in this site.
I cannot add top navigation (having ID field) at my clean 358 ver site.
After adding new top menu(Name=Mail, ID=mail, URL=mailto:aaaa@aaa.com), Name and URL field value is keep, but ID field is empty.

 Russia

Post time: 2012-02-16 16:10
| Show all posts
I cannot add top navigation (having ID field) at my clean 353 ver site.

Why not use the latest revision?
This is solved.

 Korea, Republic of

 Author| Post time: 2012-02-16 16:20
| Show all posts
Edited by ionobgy at 2012-2-16 17:56
vot replied at 2012-2-16 17:10
Why not use the latest revision?
This is solved.

I cannot set Top navigation ID field although latest 359 ver install.
Please test at this site.
Add 3rd img tag menu at this site.
1st: sethome
2nd: setfavorite
3rd: mail or facebook (lang file--->mail icon or facebook icon)

 Russia

Post time: 2012-02-16 16:39
| Show all posts
Will try
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-22 10:41 GMT+3 , Processed in 0.089298 sec., 8 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