Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Backend translation
New Landing › How can we help? › Themeforest Theme Support › Dante › Backend translation
- This topic has 22 replies, 3 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
November 10, 2014 at 3:32 pm #127029
Hi,
I just bought your great them and I was wondering if it is possible to translate Swift Page Builder and Meta Options. Etheir with poEdit or with WPML.
My french client won’t be able to create content if it is in english.regards
November 10, 2014 at 4:23 pm #127058Hi,
There is an language file for the admin located in
cardinal\swift-framework\languageDuplicate the english file and rename it to fr_FR.po
Not sure if it has everything but is what we have.
-Rui
November 10, 2014 at 5:00 pm #127078ok… many keychains are missing so I can’t use it. Shortcodes features and infos are not translatable, what if a client doesn’t speak english? This should be internationalisable. It’s a shame.
The only way is to modify hard coded files, it would be a mess and update a new version of the theme would not be possible if I do that.
So no solution?
November 10, 2014 at 5:57 pm #127100I understand not everything in the admin is translated but the content of the shortcodes is ready for translation. For instance if you search for “Widget title” you will find it in line 5077.
Unfortunately only by changing the files where no translation exist.
-Rui
November 10, 2014 at 6:28 pm #127108Thank you for that precision.
The theme seems to be very stable and complete now and there is no any major update since june.
Are you planning to add new features in the coming months?November 10, 2014 at 6:32 pm #127111Will have to forward this last question for the development team.
Thanks.-Rui
November 11, 2014 at 6:11 am #127197November 12, 2014 at 8:46 am #127527This reply has been marked as private.November 12, 2014 at 11:01 pm #127814@wildfox – of course, thank you for the contribution. Just attach a zip here and we will include it.
Appreciate it.
– Ed
November 14, 2014 at 3:09 pm #128451ok, as soon as I have time to do it, I will proceed as requested.
My pleasure 😉November 14, 2014 at 3:37 pm #128458Thanks.
-RuiDecember 15, 2014 at 5:24 pm #135823Hi,
I’m making a new fr_FR.pot file for my child theme containing all missing keychains (meta options for post/page).
Everything works fine excepted for buttons.I’d like to get translated buttons displayed in post/page meta options tabs.
They can be found in dante/swift-framework/meta-box/inc/fields/image-advanced.php. For example line 70:
$i18n_title = apply_filters( 'rwmb_image_advanced_select_string', _x( 'Select or Upload Images', 'image upload', 'rwmb' ), $field );
So I added the following code in my pot:
#. Text in function #: dante/swift-framework/meta-box/inc/fields/image-advanced.php:70 msgid "Select or Upload Images" msgstr "Sélectionner ou charger des images"
It is not translated. Did I missed something?
What about that _x, should I declare it differently?Regards
December 15, 2014 at 6:07 pm #135826Hi,
The domain text for the example you gave is
rwmb
that is the meta-box framework text domain.what is the location file of the .mo you changed?
-Rui
December 15, 2014 at 8:04 pm #135854I’ve duplicate the file from dante/swift-framework/language/en_US.po, then I renamed it to fr_FR.pot so I could add all missing meta options keychains in it.
Now the fr_FR.mo is in my child theme (child-theme/swift-framework/language/).
Everything works fine for all meta options keychains, excepted for buttons.December 16, 2014 at 3:02 pm #135994Hi,
I tried something else without success.
I created a new pot file and placed the mo file in my child theme with that path:
my-child-theme/swift-framework/meta-box/inc/fields
Then I added the following function in my child theme functions.phpfunction my_child_theme_setup() { load_child_theme_textdomain( 'swift-framework-admin', get_stylesheet_directory() . '/swift-framework/language' ); load_child_theme_textdomain( 'rwmb', get_stylesheet_directory() . '/swift-framework/meta-box/inc/fields' ); } add_action( 'after_setup_theme', 'my_child_theme_setup' );
The first load is for Meta Options tabs content and it’s fine.
Any help would be nice. -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.