Welcome, Guest
Username Password: Remember me

Language - Chance
(1 viewing) (1) Guest

TOPIC: Language - Chance

Language - Chance 2 years, 1 month ago #2094

  • JOBA1979
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hi,

where is the Config- File to Change the Defaultlanguage ?

Re: Language - Chance 2 years, 1 month ago #2095

  • nielsnl
  • OFFLINE
  • Administrator
  • Senior Software Developer
  • Posts: 932
  • Karma: 16
you can setup this in includes/config/init_common.php
For questions place see me on our IRC chatroom.

Re: Language - Chance 2 years ago #2108

  • Severino
  • OFFLINE
  • Donor 1
  • Posts: 21
  • Karma: 3
Hi there

I've entered de_CH.utf8 into includes/config/init_common.php for the German language. the problem is that when I change to German as language, there is no impact at all. So I put en = de_CH.utf8
and wrote some German translation (not yet perfect) into the English vocabulary file. This managed to get everything in German (not yet perfect). So far so good.

But as soon as a customer enters words with umlauts like ä, ü, ö, é etc. it'll be stored in the db like ü or ä (for ü and ä for example). This is with all the words with umlauts you can enter into any input field as user, as admin or pos etc. I couldn't manage to find a way to get rid of this problem. Because we have many words with umlauts and it looks very awful on the print documents (tickets etc.) and, I don't know, maybe it also affects the POS with the categories that are not shown in there.

May someone has a clue?

Kind regards

Severino

Edit:
I still couldn't manage to solve the problem with umlauts. I checked the mysql and all the locals with my hoster. I tryed all the following registered locals:

de_CH
de_CH.utf8
de_DE
de_DE@euro
de_DE.utf8

nothing works.

I changed init_common.php with this:
$_SHOP->langs_locales=array('en'=>'de_CH.utf8');

I have absolutely no idea. when i write directly in phpmysql all the umlauts work perfectly.

does someone has an idea?

Thanks

Severino
Last Edit: 1 year, 11 months ago by Severino. Reason: News/Tests:

Re:Language - Chance 1 year, 11 months ago #2331

  • Spider
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi,

you say, that i can setup this in includes/config/init_common.php, but if i rename the line 140 "$_SHOP->langs=array('en');" from en to de, i have the english language yet.

Can you help me? Where exactly can i set the german language?

And i get this error messages if i set language:
Notice: Undefined property: stdClass::$lang in C:\xampp\xampplite\htdocs\ticket\includes\config\init.php on line 226
Notice: Undefined property: stdClass::$lang in C:\xampp\xampplite\htdocs\ticket\includes\config\init.php on line 240
Notice: Undefined property: stdClass::$lang in C:\xampp\xampplite\htdocs\ticket\includes\controller\template.php on line 72
Notice: Undefined property: stdClass::$lang in C:\xampp\xampplite\htdocs\ticket\includes\controller\template.php on line 83
Last Edit: 1 year, 11 months ago by Spider.

Re:Language - Chance 1 year, 6 months ago #2844

  • Gabster
  • OFFLINE
  • Donor 6
  • Posts: 21
  • Karma: 0
Was anyone able to fix that Umlaut Problem?
I run my Shop in German, what means I have äöüß (Umlaut) in the frondend and in the Database.

I use the following header in header.tpl
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

When I use ÜÖÄ for an Event or a User uses it in his name it will show correctly in the frontend. But in the Database it is like Á1/4 for Ü. That makes it difficult to export the event data to excel.

I have some hardcoded Pages like FAQ in my FT and I use ÖÄÜ (I DONT enter &uuml;) in the source there and its is not displayed right unless I add this header to this subpage:
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
www.maratix.de/faq.php


Now I am not sure how to handle that. I would like to have, that when an ÄÖÜ is entered by a user or in the Backend for an Event, that this will be ÄÖÜ in the Database.

In my langfile I have set de_DE.utf8 what Putty has shown me to be supported by the server. The DB fields are default by FT, I think general_utf8_ci.

Has Anyone Experiences with that? Would appriciate any help and will pay for a solution!!

Re:Language - Chance 1 year ago #3268

  • hebbeln
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I also had the bug with the german umlaut in the database and i found a solution. When starting a connection to the database you have to set it to utf-8. If only php and the database are set to utf-8, the connection changes the data and it is not stored in utf-8.

I added

ShopDB::query("set character set utf8;");

in the init function of ShopDB after the time zone was set and now it works with utf-8. But you have to change all existing data in the database to utf-8 after you fixed the coding.

Re: Language - Spanish 1 year ago #3272

  • wooz
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
I want to translate to Spanish, so could you give the list of files needed for getting this done?

Regards


Marco

Re: Language - Spanish 1 year ago #3273

  • nielsnl
  • OFFLINE
  • Administrator
  • Senior Software Developer
  • Posts: 932
  • Karma: 16
Hello Marco.

the only file you need to translate is the includes/lang/site_en.inc file.

mvg
Niels
For questions place see me on our IRC chatroom.
Time to create page: 0.45 seconds

Shape the Future

Dear Members,
We have created a small survey about Fusion ticket. Please be so kind and fill it in. Thanks.

And click here.

Donate

Amount:
User:

Donate using PayPal

free counters