localization - help - files question

This is a place to discuss how to adapt mojoPortal to the needs of different cultures. Before asking questions here please first review the localization documentation.

This thread is closed to new posts. You must sign in to post in the forums.
4/15/2015 8:12:16 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

localization - help - files question

Dears,

I read most of localization issues,
i saw the supported languages in MS as described here and other support issues:

https://www.mojoportal.com/Forums/Thread.aspx?pageid=5&t=7472~1
https://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo%28v=vs.71%29.aspx
https://www.mojoportal.com/a-clever-trick-for-customizing-labels-and-buttons-in-mojoportal

i saw in all mojoportal that the "Arabichelp files was written with ar-somehelpfilename-help.config

so i made mine too, and changed the config ad needed as described in all help here thanks to you :

 <add key="UseCultureOverride" value="true" />
  <add key="site1culture" value="ar-JO" />
  <add key="site1uiculture" value="ar-JO" />
  <!-- Set this to false if you would rather add the meta ContentType yourself in layout.master
         file of your skin. If true the MetaContentControl will render it according to the
         ContentMimeType and ContentEncoding settings. -->
  <add key="AutoSetContentType" value="true" />
  <!-- Changed the default for ContentMimeType from application/xhtml+xml to text/html as of
         mojoPortal version 2.3.1.3. HTML 5 now seems the future rather than XHTML. -->
  <add key="ContentMimeType" value="text/html" />
  <add key="ContentEncoding" value="utf-8" />

i did not change the globlization as Joe said!

but the help files still showing in "ENGLISH" unless i change them for example to ar-JO-somehelpfilename-help.config

so i tried to change the webconfig to :

  <add key="site1culture" value="ar" />
  <add key="site1uiculture" value="ar" />

 

and it does not work at all !!

the "ar" language is supported from MS as in the link above!!

and i think it is not logic to change to ar-JO or ar-SA etc.. each files !!

i am talking here only about HELP files and not resx localization files !!

the source of my project all of it as open source can be located here :

https://github.com/GhalibGhniem/iQuran

any help Joe i will deeply appriciate

thank you

4/18/2015 11:04:37 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: localization - help - files question

Any help ?
I need to understand the logic of this issue !
should i change all help files to standard ar-Jo or ar-SA ? which is not logical here !

i hope Joe will see this issue and advice

regards

4/18/2015 11:27:55 AM
Gravatar
Total Posts 18439

Re: localization - help - files question

the help system can only work with ar-JO or ar-SA it does not work when the culture is less specific like ar, it will fall back to English if it does not see the files and it will not see the files with just ar

using this does work for me:

<add key="UseCultureOverride" value="true" />
  <add key="site1culture" value="ar-JO" />
  <add key="site1uiculture" value="ar-JO" />

with help files named like ar-JO-helpkey.config

resource files may fallback to ar if ar-JO is set as the culture and no ar-JO resx files exist, but the help file system is not smart enough to know that ar is a suitable fallback if ar-JO files are not found

 

You must sign in to post in the forums. This thread is closed to new posts.