Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N <> p01-contact: Problem with interchange of GS´s Default-language
#1
Hi,

my config:
  • I using the latest GS, I18N, p01-contact and
  • for permalink-structure I use in GS %nondefaultlanguage%/%parent%/%slug%.html
  • for switching language, I use <a href="<?php echo htmlspecialchars(return_i18n_setlang_url('en')); ?>">english</a>
  • the p01-contact language-files are present
  • in p01-contact, a default language is not given (because it should be the GS-one)

two problems I have:
1. if I switch the language (between default=de, en, fr), the language of the formular labels doesn´t change.
Quest.: How I get an GS-variable generally into a plugin (like p01-contact).:
In the file p01-contact.php and there in public function lang($key), the
$this->default_lang stays always 'en'.
- for a belatedly insert of the language into the plugin. Is there any GS-practice?

2. with a non-default-language-browser, f.e. an english-one, I can´t switch on the default=de,
just between en and fr. I just reach one de-default-page, if I insert into the URL a /de/.
Quest.: doesn´t work I18N with the "nondefaultlanguage"-permalink-structure?
How its possible, to keep / remind the default-language?.

regards, Bell.
Reply


Messages In This Thread
I18N <> p01-contact: Problem with interchange of GS´s Default-language - by Belletage - 2012-11-02, 21:41:03



Users browsing this thread: 1 Guest(s)