Jump to content

guess I made a mess with the language files


bbeer
 Share

Recommended Posts

Hi All

I am in setting up a multi language site. Now when I try to change the title field in the in administration Language I get following error

Recoverable Fatal Error: Argument 3 passed to LanguageTranslator::textdomainTemplate() must be of the type array, null given, called in /path/aurora/wire/modules/LanguageSupport/LanguageTranslator.php on line 389 and defined (line 106 of /path/aurora/wire/modules/LanguageSupport/LanguageTranslator.php)

Guess I made a mistake when translating the backend. I've added the german translation files to the default language.

Your help is much appreciated.

Link to comment
Share on other sites

Did you check your language setup ?

==============================================================================

Begin of Language setup

1.

After a fresh install of processwire go to Modules => Core => Language =>
Install Language Support
Click on the back button in your browser
Install Languages Support Fields
Click on the back button in your browser
Install Languages Support Page Names
Click on the back button in your browser
Install Languages Support Tabs

2.

Go To Setup->Languages and add new languages. Please note, that the default one is also the default language of your site.

Add new languages with name and title:

name: default     Title: Default (e.g. german)
name: english     Title: English
name: spanish    Title: Spanish

3.

SET URL FOR EVERY LANGUAGE

Go to Pages => Home => Edit => Settings

and under each language tab setup a url for every language,
e.g. default = de/ de   english = en/ en   spanish = es/ es

4.

Go to Setup => Fields

Change title field from PageTitle to PageTitleLanguage
Change headline field from Text to TextLanguage
Change body field from Textarea to TextareaLanguage and then go to Setup => Fields => Body => Details => inputFieldtype

Change inputFieldtype from Textarea to TinyMCE
Change sidebar field from Textarea to TextareaLanguage


Example use:

Go to Pages and edit your About Us page
go to Headline and edit About Us in the 3 languages e.g. Über uns - About Us - Sobre Nosotros


End of Language Setup

==============================================================================

 

  • Like 2
Link to comment
Share on other sites

Hi pwired

thanks for your help.

I did the setup the way you write above. It is also kind a working except that I can't rename the default language title, returning the error mentioned above. I really hope there is another way than to do a complete new install, have already quite lot of modules installed, fields added and so on.

I think the problem is that I've added the german language files to default language in pages=>setup=>languages=>default.

Hopefully there is another way to solve this.

Thanks again!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...