Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Localisation

2»

Comments

  • You have admin access so you can swop between the languages now. For the time being you'll have to send any edits you make to me to upload though.
  • Mmmm ... there's also a problem with the date formats, that are different in French and in English. Is there a way to put some constants specifying the date formats to use in the language files ?
  • I dont think so - the format vanilla displays it is the format it runs in the database as far as i know. I guess you could use a strtotime() to change them but does it matter?
  • We can change the date format with the strtotime() and date() PHP functions, or with DATE_FORMAT() in SQL, but it doesn't have to do something with translations.
  • Did I say something bad ? Have I been a naughty boy ? ;-)
  • i dunno. I'm not sure what you're trying to achieve. Whats wrong with the dates?
  • ya i'm kinda confused?
  • i suppose come to think of it, french people call their months different things. Fools. So yeah, i'm not sure of the best way to change that, maybe an extension that replaces the date formatting function?
  • edited July 2005
    Yep, or something in the dictionnary for the date format: $context->Dictionnary['DateFormat'] = 'Y-m-d'; // For English people $context->Dictionnary['DateFormat'] = 'd-m-Y'; // For French people ... Beware of the text formated dates ! It's not the same in English, French or German (the three languages I know). Examples 2005-7-28 : English : Thurday, July 28th German : Donnerstag, den 28sten Juli French : Jeudi 28 Juillet The problem is that strtotime() function only works with English dates, and making the conversion not that easy. The best way for me, is to work with timestamps and convert this to date with the date format stored in the $context->Dictionnary.
  • Yeah. Might be something mark needs to consider as a core upgrade if its a vital part of multi-language functionality. Otherwise definately an extension could be useful.
  • Ahh this would probably be better for threads/posts older than X days/weeks old which display their actual dates started/last replied. I have one word for this. Extension.
  • Well yeah lech, but it its vital for multilingual stuff, it should really be in the core.
  • I think it is, or you should have to use a tag system in the $context->Dictionnary A tag system could be useful for some sentences and you won't have to use variables for start and end of sentences, like $Context->Dictionary["ErrRequiredInputStart"] and $Context->Dictionary["ErrRequiredInputEnd"]. $Context->Dictionary["ErrRequiredInputEnd"] is empty in French. Here's an example: English : You must enter a value for the [[INPUT_TAG]] input. French : Vous devez entrer une valeur pour le champ [[INPUT_TAG]]. What do you think about this ?
  • um. i think i get the jist of what you're saying. I think we're best waiting on mark to see if he wants to add it as core or have someone make it as an extension though.
  • MarkMark Vanilla Staff
    I will have to do some more research, but I definitely consider this a bug and it should be changed in the core. Can someone add it to the bug list with a link to this discussion?
  • If some German, Spanish, Portuguese (...) people could take a look at their mother language translations, it would be very helpful, but I don't speak these languages.
  • http://lussumo.com/docs/doku.php?id=vanilla:bugs added to the wiki
This discussion has been closed.