#24 multi-language version

closed
nobody
None
5
2001-01-11
2000-09-04
Marco Milita
No

Discussion

  • Marco Milita
    Marco Milita
    2000-09-04

    None

     
    Attachments
  • Hi,

    I am doing a translation to Spanish and I want to contact Marcooo
    to give him/her the work. How I can contact Marcooo?

    Cheers

    -- Alvaro

     
  • Marco Milita
    Marco Milita
    2000-10-05

    Hi,Ciao Alvaro

    my email address is:
    m.milita@inroma.it

    marcooo

     
  • Hi marcooo

    I have sent you a first email. In the near future the Spanish translation will go to you.

     
  • It's very nice. I will do translation to the Japanese.
    However, I need indication by format for different words order and non-spacing in text for Japanese and other languages.

    "$L{More_on} $T->{alttext}" in your code
    "$T->{alttext}$L{More_on}" in needs on the Japanese and others

    Do you have good idea?

     
  • Marco Milita
    Marco Milita
    2000-11-20

    Hi, NOM_san

    > I need indication by format for different words order and non-spacing in > text for Japanese and other languages.
    >
    > "$L{More_on} $T->{alttext}" in your code
    > "$T->{alttext}$L{More_on}" in needs on the Japanese and others
    >

    I have had the same problem with some Slash's sentences.
    at the moment my solution is "to insert the variable inside the sentence";

    mysql> UPDATE language SET italian = "bla bla $T->{alttext} bla bla" WHERE lid = "More_on";
    and therefore:
    eval prepBlock($L{More_on});

    But I'm not sure that this solution is the "best".
    Perhaps, we could use also:
    $tmp = $L{More_on}
    $tmp =~ s/(\$\w+\->{\w+\})/$1/eeg;
    (it would be useful run some benchmark)

    Another way it is to use sprintf:
    mysql> UPDATE language SET italian = "bla bla %s bla bla" WHERE lid = "More_on";
    and therefore:
    sprintf($L{More_on}, $T->{alttext});

    (but with sprintf the parameter are positional and therefore
    if you have 2 parameter (bla bla %s bla bla %s bla bla) it is impossible
    to change the order without to change the code).

    what do you think about ?

    Marcooo

     
  • Thank you for fast answer. I think good for me. It's an inserted a variable in the sql sentence and refers by code to it. As you say, sprintf doesn't satisfy needs.

    The message where a change is required depends on the language and you will not be able to choose. Therefore, it needs a change all of messages in the code. It requires the change of the sql sentence, too, about all languages. Do you change messages part in the code all?
    Do you do?

    In, don't hurry. I want a happiness for all languages.
    Thank you.

     
  • Sorry!
    I flashed after I began a translation to the Japanese word.
    The previous article is an exaggerated obsession.
    All messages don't need a change and it can be chosen.
    Or, it is possible to require it of you from me, too.
    By the way, did I see 1.0.8i in SourceForge but where is the patch to Slash-1.0.9?

     
  • Chris Nandor
    Chris Nandor
    2001-01-11

    Maybe this patch is busted ... there's nothing there.

    Anyway, we won't be making any more changes to the current MAIN branch, except for bug and security fixes. We want to do multi-language support, but won't for 1.1.x/2.0.x.

     
  • Chris Nandor
    Chris Nandor
    2001-01-11

    • status: open --> closed