Letractively / dotnetkicks

Automatically exported from code.google.com/p/dotnetkicks
1 stars 0 forks source link

Multilanguage support #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
isnt it support, is it?

¿resgen + resource file?

Original issue reported on code.google.com by danielga...@gmail.com on 20 Jul 2007 at 7:27

GoogleCodeExporter commented 9 years ago
Currently there is no localisation support. There isn't that much hard coded 
text in
the application, I think it would be a simple job to extract it into resource 
files.

Original comment by gavinjo...@gmail.com on 20 Jul 2007 at 7:36

GoogleCodeExporter commented 9 years ago

Original comment by gavinjo...@gmail.com on 16 Sep 2007 at 3:17

GoogleCodeExporter commented 9 years ago
Gavin I have taken it apon myself to start extracting resources from DNK, you 
are 
correct to say there is not much hard coded text in the app but there is one 
issue,  
It involves the ascx.cs files containing messages like this
>>An email has been sent to " + this.Email.Text + ", please check you mail.<<
in this case where the ascx is supposed to produce the messages as a result of 
user 
input, a resource file will render text onto the label thus making the error 
visible 
always. I found this for the first time on "forgotPassword.ascx"  

Original comment by arm_...@hotmail.com on 30 Oct 2007 at 5:02

GoogleCodeExporter commented 9 years ago
I have successfully extracted all language string for the pages and files 
under 'Web.UI'
I am having 2 issues right now.
1) can not get # files in dir. Incremental.Kick to read from App_GlobalResources
2) DNK will not read from localized resource file ie: can not read default.ja-
JP.resx but it will read the default.resx no problem

Will update again.

Mark

Original comment by arm_...@hotmail.com on 2 Nov 2007 at 12:38

GoogleCodeExporter commented 9 years ago
Mark:

Please find attached txt file FYI. This file is post from 
CS_Library\DotNetNuke\Services\Localization of <a 
href="http://code.google.com/p/cs-
dotnetnuke/">cs-dotnetnuke</a>  project, It's powerfuly support mulit-language 
CMS 
project.

Xingbing

Original comment by xingbing...@gmail.com on 2 Nov 2007 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago
I have cleared issue two in the above post, remaining is issue one.
Yes, I also use DotNetNuke in other projects, and thanks, but this attachment 
you 
posted is a little out of my league...

I want to elaborate on issue one.
The folder Incremental.Kick does not appear to support reading 
app_GlobalResources. 
in fact when I try use the following
String.Format(Resources.GlobalResources.keyValue)
It produces an error " the name 'Resources' does not exist in the current 
context
This method workes for the files contained in Incremental.Kick.Web.UI where the 
GlobalResources folder exists (and before you say it, the app_GlobalResources 
folder 
can not exist in Incremental.Kick folder, it is not recognized there)
So I am lost as to how to approach this. 
Here is a screen shot of the solution tree. 
I really hope someone can she light on this. I have a half localized DNK on my 
hands 
I want to complete.

Thanks

Mark

Original comment by arm_...@hotmail.com on 3 Nov 2007 at 5:00

Attachments:

GoogleCodeExporter commented 9 years ago
I have cleared this issue. The problem was simply that there needed to be an 
app_GlobalResources folder in both the Incremental.kick and 
Inckremental.kick.web.ui 
folder where I was assuming that the app_globalresources must be a unique 
folder and 
was placing it in one or the other of the directories. 

Original comment by arm_...@hotmail.com on 3 Nov 2007 at 11:42

GoogleCodeExporter commented 9 years ago
Great

Original comment by xingbing...@gmail.com on 5 Nov 2007 at 12:09

GoogleCodeExporter commented 9 years ago
to save scrolling time this issue is attached as a txt file.

Thanks

Original comment by arm_...@hotmail.com on 5 Nov 2007 at 4:20

Attachments:

GoogleCodeExporter commented 9 years ago
I tried 

public static string GetString(string classKey, string resourceKey,CultureInfo 
culture)
{
    return (string) HttpContext.GetGlobalResourceObject(classKey, resourceKey, 
culture);
}

It's pass for this.

Please see attached file for demo project.

Original comment by xingbing...@gmail.com on 6 Nov 2007 at 8:02

Attachments:

GoogleCodeExporter commented 9 years ago
Anyone know where I can find the time and date strings for the story summary? 
'story 
added 5 days 1 hour 30 minutes ago....'
doing a search for reveals no strings....

Original comment by arm_...@hotmail.com on 8 Nov 2007 at 4:35

GoogleCodeExporter commented 9 years ago
Line 149 of .\DotNetKicks\Incremental.Kick\Web\Controls\Story\StorySummary.cs

Dates.ReadableDiff(_story.PublishedOn, DateTime.Now)

Which (I think) is a class from SubSonic.Sugar.

Original comment by james.e....@gmail.com on 8 Nov 2007 at 11:16

GoogleCodeExporter commented 9 years ago
Yes I did find that... I don't know much about subsonic so what does it mean if 
the 
class is from SbSonic.sugar? can it be localized?

Original comment by arm_...@hotmail.com on 9 Nov 2007 at 3:12

GoogleCodeExporter commented 9 years ago
You'll need to talk with the SubSonic team. Its a third party library that DNK 
uses.
Their web site is at http://www.SubSonicProject.com 

I'm not sure about it being localized, but it's widely used so I'm thinking that
there's a decent chance. They have a forum set up there, so you might try 
asking there.

Original comment by james.e....@gmail.com on 9 Nov 2007 at 5:17

GoogleCodeExporter commented 9 years ago
Is this closed?  I'd like to have other languages if at all possible without a
shitload of work.  If it's completed, post it.  Otherwise, I will take this on
because we need this down the road - soon.  I already have a bit of stuff 
hitting
home that isn't English.

Original comment by DustinBr...@gmail.com on 9 Jan 2008 at 6:47

GoogleCodeExporter commented 9 years ago
Localisation is important for this project.

Original comment by jan.m.we...@googlemail.com on 19 Jan 2008 at 9:40