1
svaha
Multilingo for the bookstore?
  • 2004/4/1 7:10

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I installed the Amazon bookstore module.
Because I have a multilingo site I tried to implement language constants.
This is in language/english/admin.php
Quote:
define("_AM_BOOKSTORE_DET_AUTHORS", "Author");

I put his in index.php
Quote:
$xoopsTpl->assign('lang_authors', _AM_BOOKSTORE_DET_AUTHORS);

And this in the bookstore_index.html
Quote:
<{$lang_authors}>


The problem is that it only works with the english admin file, when I change this from authorS to author it shows up, but I can't get it to display the dutch texts.
What did I do wrong?

2
svaha
Re: Multilingo for the bookstore?
  • 2004/4/1 11:43

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I really want an answer here, so bumpie die bump

Please anyone, if I don't get an answer I'll sell XOOPS to microsoft

3
ibzan
Re: Multilingo for the bookstore?
  • 2004/4/1 13:09

  • ibzan

  • Just popping in

  • Posts: 48

  • Since: 2003/8/31


Did you re-initialize the module?

Chris

4
svaha
Re: Multilingo for the bookstore?
  • 2004/4/1 17:50

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Yes I did that, I also looked in the template manager to see if the updated html were installed, that is ok also.
So, don't know?

5
worlds
Re: Multilingo for the bookstore?
  • 2004/4/2 11:06

  • worlds

  • Just popping in

  • Posts: 61

  • Since: 2004/3/13


Hey, I'd like to help, but I'm not sure I fully understand the problem. Should I be doing someting different to make the module internatioanlizable?

What exactly does 'multillingo' mean? Is it more than just having the language/english files translated into another language?

Let me know how I can help.

Tom

6
marcan
Re: Multilingo for the bookstore?
  • 2004/4/2 11:25

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


I'm not sure neighter that I understand you. However : Quote:
but I can't get it to display the dutch texts.

Did you add the DEFINE in language/dutch/admin.php?

just a tought...

7
svaha
Re: Multilingo for the bookstore?
  • 2004/4/2 16:58

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


My site is in dutch and enlgish (users can choose the language)
I have a directory language/english and language/nederlands for every module.
Tom defined in the english directory in admin.php:
define("_AM_BOOKSTORE_DET_AUTHORS", "Authors");

I defined it in the nederlands directory as :
define("_AM_BOOKSTORE_DET_AUTHORS", "Autheurs");

But it simply does not display the dutch text autheurs.

But maybe this has something to do with the define of block[0] in xoopsversion.php, don't know will find out.

Thanks for your replies
Aloha

8
worlds
Re: Multilingo for the bookstore?
  • 2004/4/6 0:18

  • worlds

  • Just popping in

  • Posts: 61

  • Since: 2004/3/13


I'm trying to make the next version more international friendly.

Perhaps someone can explain to me a simple way to use the defines in languages/xxx/template.php in templates directly.

If I have

define("_AM_BOOKSTORE_LANG_AUTHOR", "Authors");

I'd like to put something like the following in the template code:

<{$_AM_BOOKSTORE_LANG_AUTHOR}>

But it doesn't work.

I can just make a list of all the entries in the defines, like this:

$intl = array
(
"error" =>_AM_BOOKSTORE_LANG_ERROR,
"author" =>_AM_BOOKSTORE_LANG_AUTHOR,
"sales_rank" =>_AM_BOOKSTORE_LANG_SALES_RANK,
"publisher" =>_AM_BOOKSTORE_LANG_PUBLISHER,
"published" =>_AM_BOOKSTORE_LANG_PUBLISHED,
"our_price" =>_AM_BOOKSTORE_LANG_OUR_PRICE,
"more_info" =>_AM_BOOKSTORE_LANG_MORE_INFO,
"notice" =>_AM_BOOKSTORE_LANG_PLEASE_NOTE,
);

And pass it into the template. It just seems inefficient to have to define the extra list.

Any suggestions?

Tom



9
svaha
Re: Multilingo for the bookstore?
  • 2004/4/6 21:52

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Quote:
define("_AM_BOOKSTORE_DET_AUTHORS", "Author");

I put his in index.php
Quote:
$xoopsTpl->assign('lang_authors', _AM_BOOKSTORE_DET_AUTHORS);

And this in the bookstore_index.html
Quote:
<{$lang_authors}>


I did it like this (saw it in the news module) but it only worked for the english files. When I make a change in the language/english/ file I see it, but when I do the same for the language/nederlands file it does not work, dunno why.

Login

Who's Online

331 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 331


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits