Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deutsch #23

Closed
vanessa2013 opened this issue Sep 14, 2017 · 62 comments
Closed

Deutsch #23

vanessa2013 opened this issue Sep 14, 2017 · 62 comments

Comments

@vanessa2013
Copy link

Hi, is it possible to change the whole interface in German?

@theyosh
Copy link
Owner

theyosh commented Sep 15, 2017

At this moment not. I do not have a German translation. So that should be made first by some one that is a native German speaker. And I am not.

If you want to give a try to translate, here is some information: https://github.com/theyosh/TerrariumPI/wiki/Translations

@penzoiders
Copy link
Contributor

@vanessa2013 it's not that long to translate, I made the initial italian translation in something like 3 hours while being idle at meetings. go for it!

@vanessa2013
Copy link
Author

I have a small problem I come to my interface no longer

root@raspberrypi:/home/pi/TerrariumPI# python terrariumPI.py
Traceback (most recent call last):
File "terrariumPI.py", line 23, in
terrariumWebserver = terrariumWebserver(terrariumEngine)
File "/home/pi/TerrariumPI/terrariumWebserver.py", line 57, in init
gettext.translation('terrariumpi', 'locales/', languages=[self.__terrariumEngine.config.get_active_language()]).install(True)
File "/usr/lib/python2.7/gettext.py", line 545, in translation
raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: 'terrariumpi'

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

Sounds like the translation files are on the wrong location. Have you placed them at:
locales/de_DE/LC_MESSAGES/terrariumpi.po and locales/de_DE/LC_MESSAGES/terrariumpi.mo?

I saw that the Wiki page was incorrect. That is now corrected.

Could you see if this is the case?

@vanessa2013
Copy link
Author

Hi, So I have taken the .po file from English and the .mo file again.
Saved it should be correct.

grafik

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

I just did the same. No problem here. I did made a change in code last couple days regarding the translations. So maybe your fork is outdated. Could you try your translation with the latest master version?

@vanessa2013
Copy link
Author

I made apt-get update earlier so it should be all up to date, went from one minute to the other not always always offline.

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

I mean the code from github. Not apt.

But, you can also mail your translation files to me: [email protected] and I will add them. Then you can just pull a new version from Github with your translations. Updating is then also a lot easier for later on.

@vanessa2013
Copy link
Author

So I can send it to you yet are not even 20% ready but I can now no longer control whether I have translated everything correctly, I will probably reinstall everything again ...

@vanessa2013
Copy link
Author

But it does not fit any more since I started with the translation :-)

@vanessa2013
Copy link
Author

How can I reload github again without reinstalling the whole rasp?

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

Ok, not sure who well you are familiar with Git. But here is a way that is pretty straightforward.

Make a backup of your current translated files: locales/de_AT/ to your desktop.
Delete the directory TerrariumPI on the PI.
Clone the repository again from github on your PI.
Copy back the translation files to location locales/de_AT/

This will give you a clean version with the latest code with your translations.

Normally, you have created a fork of my code. But I see you have not done that. So you can make a translation, but you cannot add them to my code. But that is not a problem right now. As long you have the translation files, the can be added.

@vanessa2013
Copy link
Author

What do you mean by fork
Sorry, I can only translate your text with Google ...

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

Fork: https://help.github.com/articles/fork-a-repo/

But forget that. I will make it easy for you. If you just sent your translation by email. I will add them. Then you can just download a new version here from Github and put that on your Pi. After that, you can just continue with translating.

@vanessa2013
Copy link
Author

grafik
Not nice :-(

@vanessa2013
Copy link
Author

I have sent you an email

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

Yes. I have added them to the code.

If you download the latest version with this link: https://github.com/theyosh/TerrariumPI/archive/master.zip

On your Raspberry PI remove the old code, and upload the new code. And start it.

Also, clear your browser cache. My software use some heavy caching for speed. But after an update, you have to clear your cache.

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

Sorry, above is incorrect. This will not have the webinterface :(

So to get a clean version do the following:

login in to Raspberrypi with SSH with user pi
run command: git clone --recursive https://github.com/theyosh/TerrariumPI.git
enter directory TerrariumPI and run ./start.sh

This will dowload the latest version with the webinterface.

@vanessa2013
Copy link
Author

grafik
Und wieder ein Problem :-(

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

You are running it as root. That is not good.

  1. Login with SSH as user pi.
  2. cd Terrariumpi-master
  3. sudo ./start.sh

done. Use the ./start.sh command to start it with sudo.

@vanessa2013
Copy link
Author

Ok, what is currently the master or master without

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

Ok, it is getting late. If it is all not working. Here are once the steps to install it again.

  1. Login with ssh as user pi
  2. Remove all old code: rm Terrarium* -Rf
  3. Download new code: git clone --recursive https://github.com/theyosh/TerrariumPI.git
  4. Enter the code directory: cd TerrariumPI
  5. Start the server: sudo ./start.sh

This should do it. All commands are in color

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

The contents of the zip is different then a git clone version. That makes it confusing

@theyosh
Copy link
Owner

theyosh commented Sep 16, 2017

And tomorrow there is another day :)

@vanessa2013
Copy link
Author

That's true, wish you a good night

@theyosh
Copy link
Owner

theyosh commented Sep 17, 2017

Hi,

have you already tried: #23 (comment)

That should give you a clean version with German translation you sent me

@vanessa2013
Copy link
Author

Hi, momentarily everything works at the interface, however, he does not take me any translation into the interface

@theyosh
Copy link
Owner

theyosh commented Sep 17, 2017

Ok, a few questions:

  1. Can you choose your German language from the settings page?

  2. If you set to German and save the settings does it give an error or ok message?

When changed your language, you have to reload the hole webpage in your browser. If it is not in a different language, use Shift + Reload page (bypassing caching). This should reload the interface in the correct language.

@vanessa2013
Copy link
Author

grafik
So as here New Admin password is written in German but in the interface still in English, I have raspberry and interface reloaded ...

@theyosh
Copy link
Owner

theyosh commented Sep 17, 2017

Ok, that is somehow correct. But first, I see German translations. Hilfe is Help. I can read a bit of German. :)

But when you make new translations you have to follow the following steps.

  1. Save in PO Edit. This creates new translation files
  2. Restart Terrarium PI (can take about 30 sec) https://github.com/theyosh/TerrariumPI/wiki/FAQ#how-to-restart-terrariumpi
  3. Clear browser cache and reload webpage

Translations will only be loaded during startup of TerrariumPI. So updating translation while running will NOT update the interface. And due to caching, 'old' translations are shown. Clear browser cache and it should be ok.

@vanessa2013
Copy link
Author

Hello, since now the interface shows me always offline, but the Rasp has already started again ...

@vanessa2013
Copy link
Author

Hello, do not you know what that could be?

@theyosh
Copy link
Owner

theyosh commented Sep 18, 2017

No, because I do not understand what the problem is.

Could you try the following: https://github.com/theyosh/TerrariumPI/wiki/FAQ#how-to-debug-terrariumpi and see if there are errors or other messages?

Or is the website ok, but only the indicator on the webinterface not working. Please be more specific.

@vanessa2013
Copy link
Author

The help has not helped me, I have sudo git clone --recursive https://github.com/theyosh/TerrariumPI.git loaded and then sudo ./start.sh but I come not at all on the Rasp, and yesterday stood I'm always on me

@theyosh
Copy link
Owner

theyosh commented Sep 18, 2017

I am sorry, but how do I know what is wrong if I can't see what you are doing. You had a working version, because you asked for Wetter.at support (which I can't). So it was working.

I do not know what you have done afterwards. Nor do I know what error you have right now, because you are not clear. So please be more precise.

Why did you do another git clone? I do not understand what you are doing. Also you English is not always clear what you mean.

@vanessa2013
Copy link
Author

Sorry for my english but I can unfortunately only translate everything about google :-)
Can you see what I mean by TeamViewer?
I have made a new clone because I was always offline in the interface no matter what I tried.

@theyosh
Copy link
Owner

theyosh commented Sep 18, 2017

I got teamviewer. So we could try that.

@vanessa2013
Copy link
Author

ok i have sent you a mail

@vanessa2013
Copy link
Author

Hello, have you once again that I briefly help with the translation, then I'm done

@theyosh
Copy link
Owner

theyosh commented Sep 19, 2017

Sorry. I was really busy. With teamviewer again? Sent the invitation and I will have a look

@vanessa2013
Copy link
Author

Sorry, I just fell asleep yesterday, can we do this today ?, if you have time just write me.

@vanessa2013
Copy link
Author

grafik

@theyosh
Copy link
Owner

theyosh commented Sep 20, 2017

Hmm, looks like some wrong config settings. I can see if I can fix it if you send Teamviewer invite

@theyosh
Copy link
Owner

theyosh commented Sep 20, 2017

Sorry, but tonight I am not at home. To fix the above error, you could try the following:

Login to your pi with user pi
go to the directory TerrariumPi: cd TerrariumPI
remove settingfile: rm settings.cfg

And restart the software https://github.com/theyosh/TerrariumPI/wiki/FAQ#how-to-restart-terrariumpi or restart the hole PI.

@vanessa2013
Copy link
Author

Hi, I've been able to fix it at the moment, but if you have time tomorrow please look over by TeamViewer.

@theyosh
Copy link
Owner

theyosh commented Sep 21, 2017

Hi, first I have a meeting (again). But at around 22:00 I should be available for about 30 minutes

@vanessa2013
Copy link
Author

Hi, ok then it goes with me today unfortunately not but egla tomorrow is also a day :-)

@vanessa2013
Copy link
Author

Hi, If you would have time in the evening would be cool, then I can today the German translation and make you send.

@vanessa2013
Copy link
Author

?

@theyosh
Copy link
Owner

theyosh commented Sep 25, 2017

Euh, I was not at home this weekend. So I am not always available. Please keep an eye on you mail tonight. I hope to have some time at 22:00 hours. I will send an notice when I am available

@theyosh
Copy link
Owner

theyosh commented Sep 25, 2017

Yesh... I have time now

@vanessa2013
Copy link
Author

Hi, sorry I slept yesterday, if you have time today please contact

@theyosh
Copy link
Owner

theyosh commented Sep 26, 2017

I am available now. Teamviewer again?

@vanessa2013
Copy link
Author

I sent you the data by mail

@vanessa2013
Copy link
Author

Did you get my mail?

@theyosh
Copy link
Owner

theyosh commented Sep 26, 2017

No? That is strange... could you try again? [email protected]

@vanessa2013
Copy link
Author

Ok, I've sent it to you again please tell me

@theyosh
Copy link
Owner

theyosh commented Sep 26, 2017

Still not? I do not see any attempts from your mail provider to deliver the mail to me.

Tip: create a zip file of both files and mail the zip file to me.

@theyosh
Copy link
Owner

theyosh commented Sep 26, 2017

Ok, got them.... with 1 hour delay. Strange....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants