Git Product home page Git Product logo

Comments (10)

soif avatar soif commented on May 25, 2024

locale is NOT set to german! It should be something like : de_DE.utf8

Check on the terminal :
localeto view you current setuped locale
locale -a to list all installed locale.
And find the correct one.

Also make sure that the dates format ( $lang['dates']['day'] and $lang['dates']['time'] ) are correctly set according to german standards.

Then repost the full file here:

Also I need the ISO two letter language code for German (to correctly name the language folder): You can find it on Wikipedia or Google.

BTW when you post code here, please put 3 backtick around it, to format it as code: Edit your own previous post, and watch: I've added the tags for you.

Thank you

from phpmydomo.

jkimmel avatar jkimmel commented on May 25, 2024

File is updated

from phpmydomo.

soif avatar soif commented on May 25, 2024

Added in develop branch as 5dd20f2.
Notice that there is still 3 words missing a translation
BTW what is your name (so that I can credit you in the changelog)

from phpmydomo.

jkimmel avatar jkimmel commented on May 25, 2024

Made the missing translations and some typos

<?php

$lang['locale']="de_DE.utf8";

// menu head ###################################################
$lang['menu_head']['home']      ="Home";
$lang['menu_head']['cameras']   ="Kameras";
$lang['menu_head']['commands']  ="Befehle";
$lang['menu_head']['sensors']   ="Fühler";
$lang['menu_head']['devices']   ="Geräte";

// classes ###################################################
$lang['classes']['scene']   ="szenen";
$lang['classes']['sensor']  ="fühler";
$lang['classes']['command'] ="befehle";
$lang['classes']['camera']  ="kamera";
$lang['classes']['security']="sicherheit";

// blocks ###################################################
$lang['blocks_titles']['weather']   ="Wetter";
$lang['blocks_titles']['sensors']   ="Fühler";

// types blocks ###################################################
$lang['types']['scene']     ="Szenen";
$lang['types']['group']     ="Gruppe";
$lang['types']['temp']      ="Temperatur";
$lang['types']['wind_speed']    ="Wind Geschwindigkeit";
$lang['types']['wind_gust']     ="Wind Böen";
$lang['types']['wind_temp']     ="Wind Temperatur";
$lang['types']['wind_chill']    ="gefühlte Wind Temperatur";
$lang['types']['rain']      ="Regen";
$lang['types']['baro']      ="Barometer";
$lang['types']['hum']       ="Luftfeuchtigkeit";
$lang['types']['switch']        ="Schalter";
$lang['types']['door']      ="Tür";
$lang['types']['window']        ="Fenster";
$lang['types']['dimmer']        ="Dimmer";
$lang['types']['blinds']        ="Rollladen";       
$lang['types']['heating']       ="Heizung";
$lang['types']['cam_ip']        ="IP Kamera";
$lang['types']['air']       ="Klimaanlage";
$lang['types']['uv']            ="UV";
$lang['types']['shutter']       ="Klappe";
$lang['types']['consum']        ="Verbrauch";
$lang['types']['undef']     ="Unbekannt";
$lang['types']['hygro']     ="Luftfeuchtigkeit";
$lang['types']['bool']      ="Status";
$lang['types']['pir']       ="Bewegung";
$lang['types']['gaz']       ="Gas/Rauch";
$lang['types']['counter']       ="Zähler"; 

// infos ################################################################
$lang['infos']['sunset']    ="Sonnenuntergang";
$lang['infos']['sunrise']   ="Sonnenaufgang";
$lang['infos']['now']       ="Aktuell";

// dates ################################################################
//  date format according to : http://php.net/strftime
$lang['dates']['day']       ="%A %e %b"; // short: D M j //long: l F j
$lang['dates']['time']      ="%H : %M";

// home ################################################################
$lang['groups_names']['all_commands']="Alle Befehle";

?>

from phpmydomo.

soif avatar soif commented on May 25, 2024

there are some encoding issue in your post, ie:
$lang['menu_head']['sensors'] ="Fühler";

Please ensure that you can post it there UTF8 encoded.
Else zip your original file , and post it on some sharing site (please avoid ads popup full sites) and post the link here

BTW: give me your full name so that I can credit you!

Thank you

from phpmydomo.

jkimmel avatar jkimmel commented on May 25, 2024

Fühler contains this special character "ü" which means "ü".
It is similar to the french "è" for è.
So it will be displayed correctly as I see it here.

My full name: Juergen Kimmel

2013/12/18 soif [email protected]

there are some encoding issue in your post, ie:
$lang['menu_head']['sensors'] ="Fühler";

Please ensure that you can post it there UTF8 encoded.
Else zip your original file , and post it on some sharing site (please
avoid ads popup full sites) and post the link here

BTW: give me your full name so that I can credit you!

Thank you


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-30872410
.

from phpmydomo.

soif avatar soif commented on May 25, 2024

There IS something weird somehere !

In your latest post, in the word
"Fühler "
I see a letter "ü" (i read it as A with a Tilde symbol followed by a small 1/4).
This typically an encoding problem, when the original character is fucked by an encoding conversion.
It may happen for example when you save a UFT8 text to ISO8859-1 latin1 or ASCII (ie .txt)

Storing it as is would not display correcly on All browsers.

You must give me a file where all symbols are displayed correcly in your language, directly in the text:
I mean if "ü" should display as "ü", Write "Fühler " and NOT Fühler.

Another example: if you have an Eszett "ß", just write it like that.

BTW the first post you've done (before editing it) what rightly encoded ; this is then certainly an issue with your text editor, not storing it as UTF8.

from phpmydomo.

soif avatar soif commented on May 25, 2024

I've succeed to decode the remaining words, and mixed it with your first version (well encoded)...

So this is finished now!

Thank you very much 👍

from phpmydomo.

jkimmel avatar jkimmel commented on May 25, 2024

Just to say I changed the characters on purpose because the french file contains p. e. "è" for è

from phpmydomo.

soif avatar soif commented on May 25, 2024

I'm going to check that !

As you can see here:
https://github.com/phpMyDomo/phpMyDomo/blob/master/www/inc/lang/fr/global.php
https://github.com/phpMyDomo/phpMyDomo/blob/master/www/inc/lang/de/global.php
Encoding is fine!

This is due to your text editor which does not correctly parse UTF8 encoded file.

from phpmydomo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.