Alessandro Senese aka Ceceppa
Forum Replies Created
-
Forum: Plugins
In reply to: [Ceceppa Multilingua] Homepage double click on the flags issueOk,
send access data here http://alessandrosenese.eu/contattiForum: Plugins
In reply to: [Ceceppa Multilingua] Homepage double click on the flags issueis your theme free to download?
Forum: Plugins
In reply to: [Ceceppa Multilingua] error_log : lang_0Hi,
in Ceceppa Multilingua check if no languages is set as default ( no one have red heart ), select default one and click save….Why are using that code?
If you need current language slug you can use this functionCMLLanguage::get_current_slug();Forum: Plugins
In reply to: [Ceceppa Multilingua] [ CML ] Getting category translationHi,
with 1.4.x you can’t select category for certain language, because the plugin store translation as a simple string.
In 1.5 I’m going to create a new wordpress category, but it’s still under development. Beta version is available here: https://plus.google.com/104807878923864213031/posts/eb8cmDgRMsx
The API for manage category is not also implemented, but you can use this code for now:<?php
/*
$categories is an multidimensional array, the first key is the id of language, the second key is the category type.
Example:
$category = $categories[ 1 ][ ‘category’ ]; //This code return all the post categories that exists in language “1”.*/
$categories = get_option( ‘cml_categories’, array() );?>
Maybe you don’t have to do it, because the plugin automatically hook some wp function and remove all categories that doesn’t exists in current language.
if you need to know the id of translated category you can use this code:
<?php
//This function will be renamed in last version
CMLTranslations::get_linked_category( $category_id, $language_id );?>
Contact me if you need more information 🙂
Forum: Plugins
In reply to: [Ceceppa Multilingua] CML determines errors in CustomizerCiao 🙂
I tried but no error occurs… Can you contact me here? http://www.alessandrosenese.eu/contattiForum: Plugins
In reply to: [Ceceppa Multilingua] Get localeHi,
sorry for delay, I saw your message just now…
Actually you can use get_locale because the plugin change current locale in according to current language…
Anyhow you can use:CMLLanguage::get_current_locale()
You can find full API documentation in Ceceppa Multilingua -> Api page, if something isn’t clear let me know 🙂
Forum: Plugins
In reply to: [Ceceppa Multilingua] Failed to open stream -> Permission denieduhm… check the permission of theme folder
Forum: Plugins
In reply to: [Ceceppa Multilingua] CML determines errors in CustomizerHi,
sorry I forgot to fix the issue :(…
I’m doing some test with Twenty Fourteen theme and I need more information… “Customize page” is “Appearance” -> “Customize” page?
Can you explain me all steps to reproduce the issue?Forum: Plugins
In reply to: [Ceceppa Multilingua] Category/Tags translationThanks for report, I fixed it 🙂
Forum: Plugins
In reply to: [Ceceppa Multilingua] Post language displayHi,
which options have you enabled? And which theme are you using?Forum: Plugins
In reply to: [Ceceppa Multilingua] Copy body content from initial postHi,
I never used WPML so can explain me how it works when you add new translation?Forum: Plugins
In reply to: [Ceceppa Multilingua] Category/Tags translationHi,
Yes, I have an idea about the issue…
I fixed id in 1.5 beta version, you can donwload it there: http://www.alessandrosenese.eu/wp-content/uploads/2014/05/ceceppa-multilingua-15.zipIt’s still under development, so can contain some bugs…
Forum: Plugins
In reply to: [Ceceppa Multilingua] Posts Duplicated in Second LanguageOk,
try if 1.5 beta works, you can download it here: https://plus.google.com/104807878923864213031/posts/99sGC1ELHVnForum: Plugins
In reply to: [Ceceppa Multilingua] Posts Duplicated in Second LanguageHi,
I had a look, seems that some fatal error happens, because the page isn’t completely loaded…
Edit your wp-config.php file and change the value false with true of this line:
define(‘WP_DEBUG’, false);and also add those lines:
// Enable Debug logging to the /wp-content/debug.log file
define(‘WP_DEBUG_LOG’, true);// Disable display of errors and warnings
define(‘WP_DEBUG_DISPLAY’, false);After you did, open this link
1) http://clampmag.com/mag/isa-spanish-championships-2014/?lang=en
2) past the last lines of file “debug.log” in wp-content folderForum: Plugins
In reply to: [Ceceppa Multilingua] Quform TranslationWhy? What’s happen?