December 9th, 2002

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Mon Dec 9 23:32:24 UTC 2002

Modified Files:
---------------
livejournal/bin/upgrading/s2layers: core1.s2
livejournal/cgi-bin/LJ: S2.pm
Added Files:
------------
livejournal/bin/upgrading/s2layers/i18nc: en1.s2 fr1.s2 ja1.s2 ru1.s2

Log Message:
------------
More S2 work.

-- security icons are returned.

But mostly,

-- plural phrase selection, so any language can say "0 comments", "1 comment",
"2 comments", "12 comments", or whatever, with the right plural form.

For that, I'm checking in the beginnings of the English, French,
Japanese, and Russian i18nc layers, since they all have different
plural forms.

Each of those i18nc files contains a function to map from the count
$n to the correct plural form. (basically, I'm copying the way
gettext works... thanks, Evan!)

Actually, English doesn't override that. The core is in English, so the
following languages with plurals like English don't have to override
lang_map_plural:

Danish, Dutch, German, Norwegian, Swedish, Estonian, Finnish, Greek,
Hebrew, Italian, Portuguese, Spanish, Esperanto

For all the fun details, see:
http://www.gnu.org/manual/gettext/html_node/gettext_150.html

More details about how it relates to LJ in particular will be
documented later, but it should be pretty obvious.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 livejournal/bin/upgrading/s2layers/core1.s2
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/core1.s2.diff?r1=1.5&r2=1.6
cvs rdiff -r0 -r1.1 livejournal/bin/upgrading/s2layers/i18nc/en1.s2 \
livejournal/bin/upgrading/s2layers/i18nc/fr1.s2 \
livejournal/bin/upgrading/s2layers/i18nc/ja1.s2 \
livejournal/bin/upgrading/s2layers/i18nc/ru1.s2
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/i18nc/en1.s2.diff?r1=0&r2=1.1
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/i18nc/fr1.s2.diff?r1=0&r2=1.1
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/i18nc/ja1.s2.diff?r1=0&r2=1.1
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/i18nc/ru1.s2.diff?r1=0&r2=1.1
cvs rdiff -r1.3 -r1.4 livejournal/cgi-bin/LJ/S2.pm
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/LJ/S2.pm.diff?r1=1.3&r2=1.4

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Tue Dec 10 07:38:14 UTC 2002

Modified Files:
---------------
livejournal/bin/upgrading: s2layers.dat
livejournal/bin/upgrading/s2layers: core1.s2
livejournal/bin/upgrading/s2layers/i18nc: fr1.s2 ja1.s2 ru1.s2
livejournal/cgi-bin: ljdefaults.pl
livejournal/cgi-bin/LJ: S2.pm
Added Files:
------------
livejournal/bin/upgrading/s2layers/generator: layout.s2

Log Message:
------------
More S2 work. Beginning of porting 'generator' S1 style to S2.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 livejournal/bin/upgrading/s2layers.dat
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers.dat.diff?r1=1.1&r2=1.2
cvs rdiff -r1.6 -r1.7 livejournal/bin/upgrading/s2layers/core1.s2
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/core1.s2.diff?r1=1.6&r2=1.7
cvs rdiff -r0 -r1.1 livejournal/bin/upgrading/s2layers/generator/layout.s2
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/generator/layout.s2.diff?r1=0&r2=1.1
cvs rdiff -r1.1 -r1.2 livejournal/bin/upgrading/s2layers/i18nc/fr1.s2 \
livejournal/bin/upgrading/s2layers/i18nc/ja1.s2 \
livejournal/bin/upgrading/s2layers/i18nc/ru1.s2
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/i18nc/fr1.s2.diff?r1=1.1&r2=1.2
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/i18nc/ja1.s2.diff?r1=1.1&r2=1.2
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/s2layers/i18nc/ru1.s2.diff?r1=1.1&r2=1.2
cvs rdiff -r1.16 -r1.17 livejournal/cgi-bin/ljdefaults.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/ljdefaults.pl.diff?r1=1.16&r2=1.17
cvs rdiff -r1.4 -r1.5 livejournal/cgi-bin/LJ/S2.pm
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/LJ/S2.pm.diff?r1=1.4&r2=1.5