SocialCalc Localization for Japanese

4 views
Skip to first unread message

s-Naga

unread,
Jul 4, 2007, 4:36:13 AM7/4/07
to socialcalc
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.

Nagahira.

Casey West

unread,
Jul 5, 2007, 11:27:49 AM7/5/07
to socia...@googlegroups.com
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.

Cheers,

--
Casey West

Dan Bricklin

unread,
Jul 5, 2007, 1:01:05 PM7/5/07
to socia...@googlegroups.com
Casey,

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?

-DanB

Casey West

unread,
Jul 6, 2007, 4:19:29 PM7/6/07
to socia...@googlegroups.com

Hello,

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.

s-Naga

unread,
Jul 9, 2007, 8:13:58 PM7/9/07
to socialcalc
Mr. Casey West, Mr. DanB, and Mr. Tony

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.

2)Permission change
chmod -R a+755 *

3)Perl module downloadPerl -MCPAN -e shell, etc...

4)String.pm and Definition.txt are changed.

5)Execution
perl socialcalc.pl

6)It confirms it by a browser.
http://127.0.0.1:6556/

Could you give me some advice, please?

Sachiko Nagahira


On 7月7日, 午前5:19, Casey West <c...@geeknest.com> wrote:
> Hello,
>
> 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.
>

> > Nagahira.- 引用テキストを表示しない -
>
> - 引用テキストを表示 -

Tony Bowden

unread,
Jul 10, 2007, 3:07:50 AM7/10/07
to socia...@googlegroups.com
s-Naga wrote:
> I confirmed it according to the following procedures.
> 2)Permission change
> chmod -R a+755 *
>
> 3)Perl module downloadPerl -MCPAN -e shell, etc...

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.

Thanks,

Tony

s-Naga

unread,
Jul 10, 2007, 5:15:12 AM7/10/07
to socialcalc
Mr. Tony!

I answer your questions.

First of all, I try to execute Socialcalc on RHEL4.

When I start it using "bin/socialcalc.pl", Socialcalc can move
locally.

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).

I think, the procedure may be different from definition.txt problem.

Does it become an answer?

Tony Bowden

unread,
Jul 10, 2007, 5:59:51 AM7/10/07
to socia...@googlegroups.com
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.

Tony

s-Naga

unread,
Aug 8, 2007, 10:53:57 PM8/8/07
to socialcalc
Hi!

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?

Reply all
Reply to author
Forward
0 new messages