small isss

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.
9/15/2009 6:43:22 AM
Gravatar
Total Posts 22

small issue with spanish translation

Hello,

I found an small issue.

File:    ModuleSettings.aspx.cs

Line:   litFeatureSpecificSettingsTab.Text = lblFeatureName.Text + " " + Resource.ModuleSettingsSettingsTab;

 

This line generates a correct string in english. For Example: "Html Content Settings" .

But when translated to spanish the generated string is : "Contenido Html Ajustes". This is incorrect in spanish. It should be "Ajustes de Contenido Html".

 Possible solution?:

1.Add a new line to the resources file, for example: "FeatureSpecificSettingsTabLabel".

2.Use a formatString in this setting. For example: "{0} Settings"

3.Replace the previous line for this one:

litFeatureSpecificSettingsTab.Text = String.Format(Resource.FeatureSpecificSettingsTabLabel, lblFeatureName.Text);

4.When translating the resource file to Spanish or other languages, its possible to something like use: "Ajustes de {0}"

 

Matias Molleja

9/15/2009 8:00:16 AM
Gravatar
Total Posts 18439

Re: small isss

Hi Matias,

No-one is currently maintaining the Spanish resources and translation files. There once was someone maintaining it but I have not heard from him in about 6 months or more. He also started some documentation and was managing the mojoPortal Spanish Community but I think he has lost interest.

If you are interested in helping maintain the Spanish tranlsation and/or helping with the Spanish community site I would be glad for the help.

You can send me updated files in a .zip to joe dot audette at g mail dotcom

The answer to question 4 is yes that will work. It does not matter where the {0} is in the string but it must be there.

Best,

Joe

9/15/2009 8:21:29 AM
Gravatar
Total Posts 22

Re: small isss

Hello Joe,

I have been working on the spanish resource files the last days. In fact I translated all of them. Now I'm testing my own translation and making corrections (when I see my own translation in the real context I see many mistakes).

I will send you soon the zip files.

About this specific issue I have found. I can repair it in my site but the reason for this post was to make easier for you to solve it in the trunk.

Im not sure if this is the recomended aproach when I detect something wrong or when I have some suggestion to do. I've been looking at the codeplex site but the Issue Tracker does not seem to be very active.

 

Matias Molleja

 

9/15/2009 8:30:29 AM
Gravatar
Total Posts 18439

Re: small isss

Hi Matias,

I misunderstood but now that I look at the existing code I see what you mean. I will make that change, however for the new resource key I will use "FeatureSettingsTabFormat" so that its clear the string is a format string so my code now looks like this:

litFeatureSpecificSettingsTab.Text = string.Format(CultureInfo.InvariantCulture, Resource.FeatureSettingsTabFormat, lblFeatureName.Text);

I will try to get these changes into trunk by tonight.

Best,

Joe

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