Giter Site home page Giter Site logo

What needs work about i18n HOT 31 CLOSED

docwilmot avatar docwilmot commented on July 28, 2024
What needs work

from i18n.

Comments (31)

steve65140 avatar steve65140 commented on July 28, 2024 1

Can I add a comment that I agree with @olafgrabienski --- you can't really build a site by selecting just two multilingual priorities picked out of the pile. To build even a basic multilingual site with D7 you need numerous modules enabled.

On my existing D7 sites clients require:
• Content (field values, field labels & field help text) to be translatable.
• Taxonomy terms to be translatable.
• Views to show content in the visitors language.
• Menus to be in the visitors language.
• Blocks to be translatable and to show content in the visitors’ language.
• Webforms to be translatable and to be shown in the visitors’ language.

Behind the scenes they have:
• XML site maps in all the languages defined on the site (note that the D7 module XML site map doesn’t work with entity translation).
• Alternate hreflang tags on the pages to help search engines.
• A language selection tool that can be placed on the page by the site builder.

They also expect the backend admin pages to be in their language. I have D7 sites where English editors create content and French editors subsequently translate the content (and vice versa).

Once the above basic points are satisfied, the following make life easier for the content editors:
• Display the language name/code in the content listing page (Backdrop core allows you to do this).
• To have an overview of content translation status on the site e.g. which elements have no translation, which elements have an out of date translation and need updating. The Translation Overview module was good for this but it has been superseded by the Translation Management (TMGMT) module, which in my opinion is too complicated.

There is also the topic of handling multilingual site variables:
• Site name.
• Slogan.
• Maintenance message.
• Email texts.
• Etc.

Backdrop got off to a good start with Content Translation working well, but that is only the tip of the iceberg of what is required to build and run multilingual sites.

So I would +1 to @olafgrabienski when he said that there are at least four things required (i.e. content, taxonomy, views, blocks) as a starting point.

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024 1

It turned out that i18n_select still might be useful, so I ported it.

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

@docwilmot, thank you for taking care of this important aspect of our CMS!

But please look at README.txt - this module is advertising BDSM - http://www.backdrop.net/ 😄

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

Now I have tried to install it and this is what I got:

err

from i18n.

docwilmot avatar docwilmot commented on July 28, 2024

😄

And why not?

Seriously, a search and replace error of course. This isn't half ported yet. Thanks anyway.

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

And:

Fatal error: require_once(): Failed opening required '/home/p14352/www/domain.com/modules/i18n-1.x/i18n_string\i18n_string.inc' (include_path='.:/usr/local/php56/lib/php') in /home/p14352/www/domain.com/core/includes/bootstrap.inc on line 3629

from i18n.

docwilmot avatar docwilmot commented on July 28, 2024

Did you try to install the Block submodule. Note in my checklist above only the checked submodules have been tested to install without error.

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

I see. Ok.

from i18n.

docwilmot avatar docwilmot commented on July 28, 2024

This will be a big thing to get done, its only a very very early start. If you could test out the ones that already checked, I would be grateful. And post here if there is any particular submodule you think should be a priority. I dont use this, never have, so I'm blind.

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

I will test of cause.
But now I can not deinstall it.
I get this:

Fatal error: require_once(): Failed opening required '/home/p14352/www/domain.com/modules/i18n-1.x/i18n_string\i18n_string.inc' (include_path='.:/usr/local/php56/lib/php') in /home/p14352/www/domain.com/core/includes/bootstrap.inc on line 3629

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

Menu tab disappeared

men

from i18n.

docwilmot avatar docwilmot commented on July 28, 2024

Oh no! You may need to do some work here sorry. Youll have to go into the submodule you installed (Block languages?)and comment out any lines saying module_load_include(i18n_strings....) and try and uninstall and hope for the best.

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

It is not a problem for me - I will restore MySQL database as it was 24 hours ago 😄

Update: I have daily auto backup of all my databases and websites. So it is not a problem to restore to the previous stage any damaged database or website.

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

I try to activate (from your list):

Internationalization
Menu translation
String translation
Translation sets

and have this error:

err

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

It seems the problem is with activating Translation sets.

from i18n.

laryn avatar laryn commented on July 28, 2024

@docwilmot Might be worth adding i18nviews to the list above, even though it's a separate module in Drupal 7, since Views is in Backdrop core now?

from i18n.

docwilmot avatar docwilmot commented on July 28, 2024

Hey @laryn thanks. I started this during an episode when quite a few people were discussing languages in Backdrop; I wasn't one of them and have no need for this module, but started it to get a solution going. I actually have little idea how languages work in Backdrop/Drupal so paradoxically I cant help much with this. So hopefully eventually someone who knows more about i18n and this module in general will take over and fix this.

from i18n.

klonos avatar klonos commented on July 28, 2024

I am very interested in multilingual support, but unfortunately my php skills are very elementary and i18n is a very big/complex module.

from i18n.

laryn avatar laryn commented on July 28, 2024

@klonos I'm no expert either but may try to pick away at a few of the key submodules. Would love to build this site I've got coming in Backdrop, but need to be able to translate menus and taxonomy. I'll start separate issues for each submodule as I get a chance to look at them.

@docwilmot Hope you don't mind I linked the new issue in your first post. Trying to keep things tied together.

from i18n.

olafgrabienski avatar olafgrabienski commented on July 28, 2024

We talked recently in the Gitter channel and in the weekly Dev meeting of Aug 31st,
2017
about i18n, beginning with the following Gitter post by myself:

I'm considering to suggest to a customer to build a site with Backdrop instead of D8. There's one important requirement though: The site would be localized for German in the beginning (which will work), and at a certain point is has to become multilingual as well - not immediately (which won't work) but in about one year. Then the site owner needs definitely to translate content, taxonomy, views, menus, and a webform. My idea is to use a (modest) part of the website budget to sponsor work on the port of i18n and related modules. What would you say: is it realistic to get such a undertaking done?

There was a lot of feedback in Gitter, people expressed that they're interested in multilanguage sites as well, some said they will try to help, which is great! In the above mentioned Dev meeting we had the idea to put focus for one of the upcoming releases -- not 1.9 but probably 1.10 -- on the improvement of Backdrop's multilanguage capabilities. If I recall correct, the concept could include both the port of the most important i18n submodules and multilingual improvements in Backdrop core.

We talked also about different use cases to have a basis for a good concept and a reasonable prioritization of the development, one use case being a website of an international nonprofit organization which would be built or supported by the Backdrop4Good initiative.

Later in Gitter @serundeputy asked me to list the "top two priorities" of my use case in this queue. As I cited above, the site owner needs to translate content, taxonomy, views, menus, and a webform. Which are at least five important aspects for many sites (I leave webforms out here), and I actually forgot blocks, so we have six aspects. Difficult to pick two of them, I guess my customer (and a lot of other site multilingual site's owners) would need to translate at least content and taxonomy, and to handle views and blocks for different languages (where multilingual menus could be just several blocks, each with a menu in a different language). So, here are my top four for the moment: content, taxonomy, views, blocks.

from i18n.

mazzech avatar mazzech commented on July 28, 2024

I just create a D7 multilingual site, with a mixed use of Entity and Node translation. Entity translation is great for 90% of the stuff and most content types. But when it comes to landing pages, nothing beats Node translation IMHO: not only do I use Paragraphs a lot there (not multilingual in D7, and might never be). Even more important is the fact that landing page can be quite different in each language, which makes the 1:1 translation not the best option. D8 does not have node translation as far as I know... the D7 way in Backdrop (having both approaches) would be terrific.

from i18n.

olafgrabienski avatar olafgrabienski commented on July 28, 2024

Fyi, I've started a discussion how to improve block translation in the Backdrop4Good issue queue: Translate blocks

(We are working on the Backdrop4Good website as a use case for general multilanguage improvements in Backdrop.)

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024

I started working i18n_node. We're far from calling i18n ready yet and the module is big, so I'd like to ask for prioritization here:

  • What should be fixed next?
  • What should go (or has gone) to core?

from i18n.

bd0bd avatar bd0bd commented on July 28, 2024

Well, I do not use Backdrop CMS any more and I am not going to use it in future.
Drupal 7 is better suitable for business.
Bye Backdrop!

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024

A lot of progress has been made. Testing is welcome.

I have two questions now:

  1. Is i18n_select really obsolete? (I think so, but I actually never used it)
  2. Should we move i18n_forum to its contrib module? (Forum isn't in core anymore)

from i18n.

laryn avatar laryn commented on July 28, 2024

@indigoxela

  1. I've never used it either. Here's a description.
  2. Yes, sounds right.

And 3. Should i18n Views be wrapped (back) in since Views is in core now?

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024

Should i18n Views be wrapped (back) in

Good question. I never used that either. What does it do? Are you using it?

from i18n.

laryn avatar laryn commented on July 28, 2024

@indigoxela Yes, I use it on one or two D7 sites. It allows translation of Views labels, field rewrites, header/footer text areas, etc.

from i18n.

mazzech avatar mazzech commented on July 28, 2024

I used i18n Views several times, there are a few hickups, but the workarounds without the module are pretty dirty... ++ for having it migrated:-)

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024

Regarding i18n Views: I never needed it because views labels and header/footer text areas are translatable as-is, without any additional modules. At least in D7 - didn't need it yet in Backdrop. But if it works in D7, it should work in B core (or we should fix it there).

from i18n.

herbdool avatar herbdool commented on July 28, 2024

Can we close this? Seems like we've got everything covered in other issues.

from i18n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.