This is Sachiko Nagahira in CEC. Now we are going to contribute japanese language file to socialcalc according to the contract with SocialText. Now, our use version Socialcalc1.1.0. I referred SocialCalc Translations(http://www.socialtext.net/open/ index.cgi?socialcalc_translations) for SocialCalc translations. According to the SocialCalc Translations Page, the best localization way is definition.txt used. But, even if I change definition.txt as follows, SocialCalc was not changed when I saw in a browser after socialcalc.cgi restart.
string:Page:ページ
I think... Definitions.txt is loaded in Sheet.pm and Format.pm only. But, A lot of files (socialcalc.pl,socialcalccgi.pl,lib/*.pm, etc...) load "String.pm". Just maybe, Strings.pm overrides definitions.txt?
I'm not understand the way to reflecting method to use definitions.txt. Please teach me the way.
> It sounds like there may have been some testing missing when > SocialCalc was split into App/SocialCalc with respect to > Strings.pm. Did you check with the Polish definitions.txt file? Is > it only Japanese that has a problem?
What Polish definitions.txt file?
We did alter the path to the definitions.txt file in SocialCalc::Sheet, and tested the interface, during the split. There may be a few issues remaining. Dan, perhaps you can download the latest and try running it? Preferably from SVN. See socialcalc.org for the link to the subversion repository. Report to the list if you find any functionality broken.
I don't think I have that file. I'm not sure how the Polish conversion was done. It should have used definitions.txt, but they may have just changed WKCStrings.pm. I only tried it running on their site, I think.
I don't have time to test your change this week. I'm trying to finish up my documentation of Sheet.pm and SheetFunctions.pm, since that is a gating factor on lots of things
I see that App::SocialCalc.pm uses App::SocialCalc::Strings. The definitions are loaded using SocialCalc::Sheet::load_special_strings (called in App:: SocialCalc.pm). SocialCalc::Sheet uses SocialCalc::Strings, not App::SocialCalc::Strings. I assume this is the problem. Why are there two copies of Strings.pm and two copies of Datafiles.pm? Are they different?
> On Jul 4, 2007, at 9:35 AM, Dan Bricklin wrote: > > It sounds like there may have been some testing missing when > > SocialCalc was split into App/SocialCalc with respect to > > Strings.pm. Did you check with the Polish definitions.txt file? Is > > it only Japanese that has a problem?
> What Polish definitions.txt file?
> We did alter the path to the definitions.txt file in > SocialCalc::Sheet, and tested the interface, during the split. There > may be a few issues remaining. Dan, perhaps you can download the > latest and try running it? Preferably from SVN. See socialcalc.org > for the link to the subversion repository. Report to the list if you > find any functionality broken.
Tony and I have researched your problem. It is a bug we introduced in the latest official release of SocialCalc. We have fixed this bug in the latest snapshot. You can download the snapshot from our website: http://socialcalc.org .
Now, any string overrides you make in definitions.txt are available to the core and the standalone application.
Please test the latest snapshot and let us know how it works.
Thank you.
On Jul 4, 2007, at 4:36 AM, s-Naga <kirit...@gmail.com> wrote:
> This is Sachiko Nagahira in CEC. > Now we are going to contribute japanese language file to socialcalc > according to the contract with SocialText. Now, our use version > Socialcalc1.1.0. > I referred SocialCalc Translations(http://www.socialtext.net/open/ > index.cgi?socialcalc_translations) for SocialCalc translations. > According to the SocialCalc Translations Page, the best localization > way is definition.txt used. > But, even if I change definition.txt as follows, SocialCalc was not > changed when I saw in a browser after socialcalc.cgi restart.
> string:Page:ページ
> I think... > Definitions.txt is loaded in Sheet.pm and Format.pm only. > But, A lot of files (socialcalc.pl,socialcalccgi.pl,lib/*.pm, etc...) > load "String.pm". Just maybe, Strings.pm overrides definitions.txt?
> I'm not understand the way to reflecting method to use > definitions.txt. > Please teach me the way.
Thank you for your responses! I tested the latest snapshot. However, the expression I defined in "definition.txt" is not refected.
To confirm which file reflected, I changed files "lib/App/SocialCalc/ Strings.pm" and "share/socialcalc/definitions.txt" example to the following effect.
1. lib/App/SocialCalc/Strings.pm: Line 264:previewpublishtoserver" => "test(Strings.pm) Publish to the server as",
2. share/socialcalc/definitions.txt: Line 171:string:gelisttitle:test(definitions.txt) Pages You Can Edit On Site:
1 is reflected, but 2 isn't.
Have I made a mistake in the procedure? I confirmed it according to the following procedures.
1)The latest snapshot download Socialcalc-snap.tar.gz is downloaded from SocialCalc.org, and depressed.
> Tony and I have researched your problem. It is a bug we introduced in > the latest official release of SocialCalc. We have fixed this bug in > the latest snapshot. You can download the snapshot from our website:http://socialcalc.org > .
> Now, any string overrides you make in definitions.txt are available to > the core and the standalone application.
> Please test the latest snapshot and let us know how it works.
> Thank you.
> On Jul 4, 2007, at 4:36 AM, s-Naga <kirit...@gmail.com> wrote:
> > Dear All!
> > This is Sachiko Nagahira in CEC. > > Now we are going to contribute japanese language file to socialcalc > > according to the contract with SocialText. Now, our use version > > Socialcalc1.1.0. > > I referred SocialCalc Translations(http://www.socialtext.net/open/ > > index.cgi?socialcalc_translations) for SocialCalc translations. > > According to the SocialCalc Translations Page, the best localization > > way is definition.txt used. > > But, even if I change definition.txt as follows, SocialCalc was not > > changed when I saw in a browser after socialcalc.cgi restart.
> > string:Page:ページ
> > I think... > > Definitions.txt is loaded in Sheet.pm and Format.pm only. > > But, A lot of files (socialcalc.pl,socialcalccgi.pl,lib/*.pm, etc...) > > load "String.pm". Just maybe, Strings.pm overrides definitions.txt?
> > I'm not understand the way to reflecting method to use > > definitions.txt. > > Please teach me the way.
I'll let Casey respond on the main question, but I'd like to ask about these two steps. They shouldn't have any impact on the problem you're reporting, but I'm curious as to why you need to change the permissions on anything, and on which Perl modules you are needing to download. Neither of these steps should be required.
> I'll let Casey respond on the main question, but I'd like to ask about > these two steps. They shouldn't have any impact on the problem you're > reporting, but I'm curious as to why you need to change the permissions > on anything, and on which Perl modules you are needing to download. > Neither of these steps should be required.
s-Naga wrote: > When I start it using "bin/socialcalc.pl", Socialcalc can move > locally.
Are you sure you're running the latest snapshot? In that there is no "bin/socialcalc.pl". This may explain your definition.txt problem.
> However, when I ran "bin/socialcalccgi.pl", " Internal Server Error." > displeyed on the Web UI. So, I do many trial referencing the > installation how-to > (http://www.socialtext.net/open/index.cgi?socialcalc).
The instructions you appear to be following here are for OSX only, to work around problems with the default perl installation provided by Apple. These should not be needed on Linux.
These instructions are also only for the 'desktop' version - not the CGI version, which will require configuration of your webserver and either setting paths or moving files around.
The translation of Japanese was prepared. However, definitions.txt is not reflected as usual. Is there a person who succeeds in the reflection of definitions.txt besides me? Was anything changed besides share/socialcalc/definitions.txt?