Advertisement:

Author Topic: Remplacer "région" par "département"  (Read 2268 times)

ungars

  • Newbie
  • *
  • Posts: 28
Remplacer "région" par "département"
« on: April 26, 2016, 11:32:52 pm »
  Bonsoir,
  Lors du dépot d' annonce, il est demandé de donner sa région, or moi je voudrais que ce soit le département, de façon à ce que cela colle avec mon thême "France" .
  J' ai fait une recherche, je suis tombé sur ce post ou il est marqué :
Quote
t'as juste a remplacer le mot région de la liste déroulante par le mot département...

  Mais de quel liste déroulante on parle ? Je ne la trouve pas.

  Merci de votre aide, bonne soirée.

ungars

  • Newbie
  • *
  • Posts: 28
Re: Remplacer "région" par "département"
« Reply #1 on: April 30, 2016, 04:54:55 pm »
Bonjour, personne n' a une petite idée ?
Bonne journée et bon week end à tous.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Remplacer "région" par "département"
« Reply #2 on: April 30, 2016, 06:23:31 pm »
Hi,

You need to edit your bender/languages/fr_FR/theme.po using Poedit:

https://doc.osclass.org/Translating_and_editing_language_files_(.po_and_.mo)

Locate "Région", change to "Département", save and upload new generated theme.po and theme.mo to same folder on your server.

Regards

ungars

  • Newbie
  • *
  • Posts: 28
Re: Remplacer "région" par "département"
« Reply #3 on: April 30, 2016, 07:47:58 pm »
Hello,
Thank you a lot for your help.
I downloaded the folder theme.po from theme/bender/language/fr , edit it, change as the link you sent to me, save it, download the 2 folders (theme.mo and.po) on my server, restart apache and mysql server, but no changed... Always region.

  I saw 2 others folders, core.mo and core.po, I have the same things to do with them ?

  Thank you again,

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Remplacer "région" par "département"
« Reply #4 on: April 30, 2016, 07:56:39 pm »
There is another general languages folder at oc-content/languages, do the same to /fr_FR/core.po

Regards

ungars

  • Newbie
  • *
  • Posts: 28
Re: Remplacer "région" par "département"
« Reply #5 on: April 30, 2016, 11:16:19 pm »
  Hi,
  I do the same for : core.po and theme.po at /content/language/fr + theme/bender/language/fr

  But no change....

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Remplacer "région" par "département"
« Reply #6 on: April 30, 2016, 11:20:43 pm »
You are using Poedit, aren't you? Are you sure you're changing translation box ("Région") and not Original string box ("Region")?

ungars

  • Newbie
  • *
  • Posts: 28
Re: Remplacer "région" par "département"
« Reply #7 on: May 01, 2016, 12:30:21 am »
Hi, good new, I could change "region" by "département" almost everywhere. In fact, I forgot one translation !
I will check tomorrow where I forgot again a translation, because stay again "sélectionner une région" in one place. I think it' s somewhere in Bender theme.
Tell you more tomorrow.

Thank you so much for your help !

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Remplacer "région" par "département"
« Reply #8 on: May 01, 2016, 12:55:22 am »
You're welcome. :)

To find given strings in .po files (and the whole set of scripts if you need so) I recommend you to get the free Notepad++ editor.

Regards




ungars

  • Newbie
  • *
  • Posts: 28
Re: Remplacer "région" par "département"
« Reply #9 on: May 01, 2016, 07:20:43 pm »
Hi Teseo,
I still have some translation problem. To write a classified ad, no problem, "région" is translated into "département" . But :
- With theme osclasswizards , on the first page, I read "select a region", "select a country", "select a city" , rather the French translation. Only "choose a category is translated" . French language is activated on the website. I would like to use this theme.
- To write a classified ad with Bender theme : The scroll menu is translated well, but just before, it' s again "region" , if we can' t solve it no problem.

  I checked again core.po and theme.po at /content/language/fr + theme/bender(or osclasswizzard)/language/fr (I use poedit and the sortcut ctrl+f to see all the translation I search) , translation seems to be ok.

  Thank you for your help


teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Remplacer "région" par "département"
« Reply #10 on: May 01, 2016, 07:43:44 pm »
Hi,

Osclass Wizards: osclasswizards/languages/fr_FR/theme.po should have those translations. ??? If not so, it's a bug. You can do this: locate those strings in en_US/theme.po:

Quote
#: header.php:150 search-sidebar.php:70
msgid "Select a region"
msgstr ""

And use Notepad++ to edit your fr_FR/theme.po, copypaste those blocks from english version at the bottom, and add the translation in the last line of each block (msgstr). Then save the .po and process it through Poedit.

Regards

ungars

  • Newbie
  • *
  • Posts: 28
Re: Remplacer "région" par "département"
« Reply #11 on: May 01, 2016, 08:48:32 pm »
Hi,
Perhaps I didn' t understand : I had those lines :
Code: [Select]
#: header.php:150 search-sidebar.php:70
msgid "Select a region"
msgstr "Sélectionner un departement"

On the fr_FR/theme.po of osclasswizzard that is right ?

  Thank you !



teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Remplacer "région" par "département"
« Reply #12 on: May 01, 2016, 08:50:57 pm »
Yes, that's correct. And that isn't being translated on the frontend? ???

ungars

  • Newbie
  • *
  • Posts: 28
Re: Remplacer "région" par "département"
« Reply #13 on: May 01, 2016, 09:18:16 pm »
Unfortunately no change !

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Remplacer "région" par "département"
« Reply #14 on: May 01, 2016, 09:52:06 pm »
Can you zip your current osclasswizards/languages/fr_FR/theme.po and theme.mo and attach it here so I could test it myself?
« Last Edit: May 01, 2016, 10:04:10 pm by teseo »