Salta la navigazione

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Etichettato: 

Questo ticket contiene 1 risposta, ha 2 voci.

Ultimo aggiornamento da Paola Mendiburu 1 anno, 9 mese fa.

Assistito da: Paola Mendiburu.

Autore Messaggi
Luglio 14, 2023 a 7:50 am #14037859

webN

Spiegaci cosa stai tentando di fare.
I am creating a site for a municipality that needs to promote its
1) Events
2) Hotels
3) Restaurants
4) etc. etc.

Using the JET ENGINE Plugin (Crocoblock) I created CustomPostTypes for each of these (events, hotels, restaurants)

Again using JET ENGINE (Crocoblock) I created Metaboxes specific to each CPT. In our specific example, I will consider the custom fields specific to the Events CPT.

For events, I created These Metaboxes:
1) Nome (Name)
2) Indirizzo (Address)
3) Descrizione (Description)
4) Data (Date)
5) Mese (MONTH): This field has 12 selectable options. Each option corresponds to a month of the year and being a "select" field only 1 can be selected at a time. => This field has a problem, but we explain it later.

Next, using ELEMENTOR,
For each CPT, specific TEMPLATES were created that via LISTING GRID load the contents of the previously created CPTs.
For example... the site.com/events page dynamically loads all events by displaying the custom fields created previously.

So far the site has been done completely in Italian.
Here our client decides to add language in ENGLISH and GERMAN.

From this point on we decide to purchase WPML and start the configuration.

We set the DEFAULT language of the site to Italian and add English and German. Total 3 languages.

I start doing the site translation.
1) I go to WPML => String Translations >.
2) I look for the MONTHS data entered in the EVENT Metaboxes, then enter in the "🔍Search", one at a time, all 12 months in Italian.

PROBLEM: Here I see that each month I formulated in ITALIAN results in ENGLISH and I can only translate into ITALIAN and GERMAN.
[ATTACH SCREEN 1].

Example.
- "GEN" is the abbreviation for GENNAIO in Italian, but WPML sees it in English.
- "GEN" I can only translate it into ITALIAN and GERMAN, but GEN is already in Italian.
[ATTACH SCREEN 2].

- It would have been correct if you had asked me to translate GEN (ita) into => JEN (eng) and JAN (deu)

I realized for myself that the problem arises from the fact that the JETENGINE plugin (as well as all CROCOBLOCK plugins) are natively detected in English (just as WPML is detected by itself as English).
[ATTACH SCREEN 3].

So I tried entering the months in English and then translating them into Italian and German.

Then on the site in ITALIAN, before translating everything, it only shows me the English version even s ele strings I have already translated them.

QUESTION 1: How do I get the string displayed, inside ELEMENTOR, via DYNAMIC FIELDS, inside TEMPLATES, in the right language?
[ATTACH SITE SCREEN ITA and ENGLISH DATE[

QUESTION 2: Can I change the language in which a PLUGIN is detected by WPML? Then have JetEngine detect it as ITALIAN and/or WPML detect it as Italian and then start translating the strings into other languages?

Stai seguendo qualche documentazione?

Esiste un esempio simile che possiamo vedere?

Qual è il link al tuo sito?
link nascosto

4.jpg
3.jpg
2.jpg
1.jpg
Luglio 14, 2023 a 1:35 pm #14040087

Paola Mendiburu
Sostenitore di WPML dal 11/2020

Lingue: Inglese (English ) Spagnolo (Español ) Italiano (Italiano )

Fuso orario: Europe/Madrid (GMT+02:00)

Ciao!

Sono Paola, spero vada tutto bene.

Per cambiare il dominio di una stringa devi fare questo:
https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

In questo modo puoi mettere il italiano come quella predefinita.

Dimmi se hai qualche problema.

Luglio 15, 2023 a 10:05 am #14042281

webN

grazie