Hello. Is there any readme or step-by-step manual? I've tried to use this module, but I could not get it.

Steps followed:

  1. Go to admin/config/system/variable/realm/domain/configure and enable sitename variable to translate
  2. Install domain_variable, domain_variable_i18n modules
  3. Add domain and set "The human-readable name of domain" (A value)
  4. Go to admin/structure/domain/view/[domain_id]/variables and set sitename (B value) instead of default "Drupal" name and "Maintenance mode message"
  5. Go to my domain and see no result, sitename has A value field from admin/structure/domain/view/[domain_id] page
  6. Tried to search sitename (A value) to translate it at admin/config/regional/translate/translate, but no result
  7. Go to common Domains settings admin/structure/domain/settings and turn off "Override site name with name of domain"
  8. Go to my domain and see that sitename has B value (!)
  9. Tried to search sitename (B value) to translate it at admin/config/regional/translate/translate, but no result

Domain Access 7.x-3.4
Domain Variable 7.x-1.0
Domain+I18n Variables Integration 7.x-1.0
Internationalization 7.x-1.7
Variable 7.x-2.1

Comments

bforchhammer’s picture

Go to /admin/config/system/site-information. You should see two selector blocks above the form allowing you to switch between combinations of domains and languages. Select the combinations you want to change, and simply edit the value in the form.

The form field description for the sitename field should say "This is a multilingual domain variable.". If it doesn't you need to go back to the variable realm admin pages, and add the sitename variable for both the language and the domain realm.

The domains settings "Override site name with name of domain" needs to be turned off.

Does this help?

dark_kz’s picture

Thank you for reply!

>>The form field description for the sitename field should say "This is a multilingual domain variable.". If it doesn't you need to go back to the variable realm admin pages, and add the sitename variable for both the language and the domain realm.
It doesn't :( I can translate only my default domain sitename. Maybe cause I translated it before multisiting.

admin/config/system/variable/realm
Only local images are allowed.
http://monosnap.com/image/HaXzLWRWNrdEJFa448E1zezO2

at admin/config/system/variable/realm/domain_language I only see the list of keys on one language and can't configure it :(

>The domains settings "Override site name with name of domain" needs to be turned off.
off

bforchhammer’s picture

"Domain+Language" variables are automatically made up by the intersection of configured language variables and configured domain variables. You need to configure them separately on the domain/language configuration pages; i.e. go to admin/config/system/variable/realm/domain, and add the sitename variable, then do the same on admin/config/system/variable/realm/language...

dark_kz’s picture

It is already enabled realms for domain and language :(

bforchhammer’s picture

What does the overview page for domain+language variables look like?
Also, note that translation is not done via the localization interface (admin/config/regional/translate/translate), but directly on the respective settings page (see my reply#1).

dark_kz’s picture

All of my sitenames on Domain+Language page on English, even my default domain sitename

"Default domain sitename on English", Kazakh
"Default domain sitename on English", Russian
"Default domain sitename on English", English
"Subdomain1 sitename on English", Kazakh
"Subdomain1 sitename on English", Russian
"Subdomain1 sitename on English", English
"Subdomain2 sitename on English", Kazakh
"Subdomain2 sitename on English", Russian
"Subdomain2 sitename on English", English

But why when I switch language on Site information page - default domain sitename translates normally, but not for subdomains

bforchhammer’s picture

Here's a set of screenshots showing how it is supposed to work...

4-domain-modules.png

5-domain-settings.png

1-variable-realm-domain.png

2-variable-realm-language.png

3-variable-realm-domain+language.png

6-site-information-config-main-english.png

7-site-information-config-subdomain-german.png

lolandese’s picture

Status: Active » Closed (fixed)

Added to the module documentation.

Thanks for the clarifying screenshots.

lolandese’s picture

Issue summary: View changes

no way