Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
oh! How stupid of me… Didn’t need the woocomerce, but hadn’t thought it would affect something else..
Thx a lot.
This reply has been marked as private.So now I had the host support move me to a newer PHP server, which removed the “function.set-time-limit” error. But I still get the same import error no matter which .XML file I choose to import…. see screen dump:
Attachments:
You must be logged in to view attached files.Can’t include PO and MO files?
Hi Mohammad
I’ve been busy 🙂 But I included the files.I also included a screen dump for you to see, that I already made the language folder. Still doesn’t do what its supposed to…
Best regards
Michaelahh of course, stupid me 🙂
Thank you so much!Best regards
MichaelThink I got it 🙂 (but still don’t know what will happen after update…)
Copied the translated PO and MO files (da_DK) to:
/public_html/wp-content/themes/neighborhood/language &
/public_html/wp-content/themes/neighborhood-child/languageAnd reinstalled Localization – went to Localization plugin/woocommerce and pressed EDIT. All the words where translated to danish.
After this it worked 🙂Thx
Hi Laranz, thx for your patience.
I allready translated the PO file in the Neighborhood theme earlier. Now I put the PO+MO files in the:
/public_html/wp-content/themes/neighborhood/language &
/public_html/wp-content/themes/neighborhood-child/language…and it almost works. But I don’t know what will happen when I update the theme next time…. Anyway I have stored the files, so it’ll have to do for now.
BUT there are still some words which are not translated (see attached file). I think it relates to woocommerce, but when I open the PO or POT file in:
/public_html/wp-content/plugins/woocommerce/i18n/languages…the words from my attached file is not on the “list”
WHERE do I edit these words?
Michael
Ok, so I previously had Localization installed, but never made it work with danish translation.. this explains the define (‘WPLANG’, ‘ll_CC’);
In the Localization plugin under the Woocommerce translate section it says:(see attached file) – does it mean anything?
Michael
Hi, I didn’t put the “ll_CC” there in the first place. Don’t know how it got there?!?
I tried to change it to:
define (‘WPLANG’, ‘da_DK’);
define (‘WPLANG’, ‘da_DK’);
….no luckAnd afterwards:
define (‘WPLANG’, ‘da_DK’);
…also no luckSom of the words is translated and others are not. It seems it would have something to do with Woocommerce vs Neighborhood, maybe? (see attached file).
Michael
Thanks Laranz, but no luck…
This is where I put my functions.php file:
/public_html/wp-content/themes/neighborhood-child
…and the code now looks like this:<?php
add_action( ‘after_setup_theme’, ‘neighborhood_child_setup’ );
function neighborhood_child_setup() {
/* Load the child theme’s gettext file */
load_child_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/languages’ );
}
?>My wp-config.php is in this directory:
/public_html
…and it looks like this in the language section of the code (I want it to be “da_dk”)/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German
* language support.
*/
define (‘WPLANG’, ‘da_DK’);
define (‘WPLANG’, ‘ll_CC’);
define (‘FS_METHOD’, ‘direct’);
define(‘WP_DEBUG’, false);
/* That’s all, stop editing! Happy blogging. */I have also attached my translated PO file, which is located in:
/public_html/wp-content/themes/neighborhood-child/languagesPlease advise.
Best regards
Michael -
Posted in: We hit Power Elite.