Hi,

I have a live website and want to add 3 new languages to it, however while I'm working on the site, I don't want the language icon links to appear for the new languages that haven't been translated.

On admin/settings/language I've got the current translations enabled and the new ones with the 'enable' box unticked.

Is there a simple way to hide the icon flags from appearing when the translation is not enabled?

Thanks!

Comments

Freso’s picture

Status: Active » Postponed (maintainer needs more info)

Are the links to the disabled languages still there if you disable Language icons?

dutchie76’s picture

Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Active

Yes, second this, if there is no translation available then the flag should not display otherwise you end up having to ensure all content is 100% translated, all at once or you face potentially lots of duplicated content.

Please advise.

Freso’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

You did not answer my question from comment #1. Reverting status.

dutchie76’s picture

Priority: Normal » Major

bump

Freso’s picture

Priority: Major » Normal
Status: Postponed (maintainer needs more info) » Closed (works as designed)

Priority level of issues:

Major

Issues which have significant repercussions but do not render the whole system unusable are marked major. An example would be a PHP error which is only triggered under rare circumstances or which affects only a small percentage of all users. These issues are prioritized in the current development release and backported to stable releases where applicable. Major issues do not block point releases.

Also, since this has been "maintainer needs more info" since February (almost half a year ago!), I'm closing the issue. (See the page on the status values.)

neorg’s picture

Searching for an answer on the same question (1)# I reached this page.

You can simply hide the flag of the non translated node with CSS

.locale-untranslated {
    visibility: hidden;
}
kifuzzy’s picture

Searching for an answer on the same question (1)# I reached this page.

was searching too and want to notice .. (using drupal core 7.22, for that (multilingual, using a language-switcher-block displayed in an extra region i made for it in side-top) .. and using "language icons module" (drupal-test-installation with three languages))

modify css in locale.css where you may find ".locale-untranslated" works fine for untranslated things.

in my case, it also works for things being translated but not published cause my drupal marked the translated-but-not-published also as ".locale-untranslated"-element, so i can access translated-but-not-published via css and hide the language-flag / language-link also for translated-but-not-published.

effect before / without action on it: when an article (or whatever) was translated in a second (third,..,..) language but not published .. i saw the language flag (link) available for the new translated and not published article and if someone clicked on it - "access denied". so .. the way to hide it via css as a translated-but-not-published via .locale-untranslated. for me as a non-programmer good way.

css, i used "display: none;" for element, cause in some cases "visibility: hidden;" had problems in layout / arrangement of icons in how it was displayed.

with "visibility:hidden;" sometimes like:
icon displayed - icon hidden but empty space displayed - icon displayed ...

with "display:none;" more often like:
icon displayed - icon not displayed and no empty space displayed - icon displayed ... so it looks like:
icon displayed - icon displayed

etc