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

Language file from Github #1116

Open
xtodaimand opened this issue May 19, 2023 · 16 comments
Open

Language file from Github #1116

xtodaimand opened this issue May 19, 2023 · 16 comments

Comments

@xtodaimand
Copy link

Language file from Github.

I downloaded the language files from github and uploaded them to the server. the flags are there now and you can click on them. only problem is the language doesn't change. in the url, if you click on the german flag, it says /?l=de. only everything remains in English. I don't get along with the description from the Github page :-( can someone please help me?

@2dned
Copy link

2dned commented May 21, 2023

Hi just had a look for you, i uploaded the international pack, installed sql
I see flags at bottom, click first one Dutch, some text has changed to German and some English, menu bar is German and half of profile is English lol.

I may have to translate a file.

@xtodaimand
Copy link
Author

I installed this here. So the files are loaded onto the server. it just doesn't work with the translation. the only thing that happened is that the flags are there. but nothing more. what should I do?

https://github.com/pH7Software/pH7-Internationalization

@2dned
Copy link

2dned commented May 21, 2023

I installed this here. So the files are loaded onto the server. it just doesn't work with the translation. the only thing that happened is that the flags are there. but nothing more. what should I do?

https://github.com/pH7Software/pH7-Internationalization

Did you install the pH7CMSLangs.sql to database?
In config/config.ini line 16 "en_US" needs to change to "de_DE"

@xtodaimand
Copy link
Author

how do I do that? pH7CMSLangs.sql to database

@2dned
Copy link

2dned commented May 21, 2023

open your phpMyAdmin, import the sql file, make sure the prefix is ph7_ (the default prefix)

@2dned
Copy link

2dned commented May 22, 2023

your prefix is ph7c6_

Replace "ph7_" by your prefix set in "~/_protected/app/configs/config.ini" [database] prefix variable

It will add a new table in DB ph7c6_language_info

I will do some testing tonight and get back to you.

@2dned
Copy link

2dned commented May 22, 2023

i have mostly working here
https://date.ph7dating.com/

But it doesn't seem to work with the prefix ph7c6 for some reason on my wampserver,

@2dned
Copy link

2dned commented May 22, 2023

Custom_pH7CMSLangs.zip

This is a zip with the .sql rewritten to suit your database, i changed the ph7 to ph7c6 in the file.

@xtodaimand
Copy link
Author

That's really kind of you. But shortly before that I had redesigned the page and the Pref. made on ph7_. It works with French, but if you click on the flag, for example, almost all of them only come up in English. only france there it is in french :-( what am i doing wrong?

@xtodaimand
Copy link
Author

xtodaimand commented May 22, 2023

Is it because only the en.xml and fr.xml is in configs/routes? but how do I create an xml for example?
2023-05-22_12h51_13

@xtodaimand
Copy link
Author

you can have a look at:

https://moderationsloseliebe.com/

@2dned
Copy link

2dned commented May 24, 2023

yes i think your problem is you need the de.xml
I tried to rename it but it didn't work, will look more into it and get back to you.

@2dned
Copy link

2dned commented May 25, 2023

open the fr.xml, change the French URLs to German, example below. I am making a de.xml, will take a day to finish it.

  <route url="@([a-zA-Z0-9_-]+)" path="system/modules" module="user" controller="profile" action="index" vars="username" />
  <route url="anmeldung" path="system/modules" module="user" controller="signup" action="step1" />
  <route url="anmeldung" path="system/modules" module="user" controller="main" action="login" />
  <route url="erneute-aktivierung" path="system/modules" module="user" controller="main" action="resendactivation" />
  <route url="benutzer/einstellung/konto löschen/?([a-z]+)?" path="system/modules" module="user" controller="setting" action="delete" vars="delete_status" />
  <!-- admin -->
  <route url="Benutzer/Bearbeiten/?([0-9]+)?" path="system/modules" module="user" controller="setting" action="edit" vars="profile_id" />
  <route url="Benutzer/Avatar/?([0-9]+)?/?([a-zA-Z0-9_-]+)?/?([^/]+)?/?([a-z]+)?" path="system/modules" module="user" controller="setting" action="avatar" vars="profile_id,username,first_name,sex" />
  <route url="Benutzer/Design/?([0-9]+)?/?([a-zA-Z0-9_-]+)?/?([^/]+)?/?([a-z]+)?" path="system/modules" module="user" controller="setting" action="design" vars="profile_id,username,first_name,sex" `/>

@2dned
Copy link

2dned commented May 26, 2023

@xtodaimand i add a zip file, unzip it and add the de.xml to the routes folder so you will have en.xml, fr.xml and de.xml now.
de.zip

Please open the de.xml with editor and change any mis spelling. Im from Australia and don't speak German so some translate might be off a little.

@xtodaimand
Copy link
Author

also ich habe langsam echt die faxen dicke von dem scheiss! das ist mir noch nie unter gekommen dass das nicht recht einfach eingebaut werden kann! ich habe keine lust mehr auf diese möchte gern sprachenpaket!

@Salva99999
Copy link

Hi, for the past 2 weeks I think I've installed the setup 99 times, I've read and re-read the procedures, but I really can't get it to work in French. Apart from the flags at the bottom of the screen, nothing works. I've even bought the poedit licence so that I can do the translations myself, but I haven't quite worked out how to do that yet. I'm adopting the programme, but I'm going crazy!

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