Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for restricted languages (only accessible for logged-in authors) #23

Open
twiro opened this issue Jan 25, 2022 · 3 comments

Comments

@twiro
Copy link
Owner

twiro commented Jan 25, 2022

When clients decide to add additional languages after the initial launch of a website the current logic of this extension only allows them to see/use/edit the new language in the backend, but it is not possible to show it in the frontend without making it accessible to the public.

For smaller websites this might be no big deal, but for larger projects, that take time to translate and fill in all the content for a new language, this is far from perfect – so the wish to temporarily mark languages as 'restricted' and thus make them accessible to logged-in authors in the frontend without involving them in any routing/redirecting-logic for public users popped up quite a few times in the past and I finally decided to implent this, as two cleints actively require this feature.

Might take this as an opportunity to also finish the documentation and finally publish version 2.0.0 of this extension 😶

@twiro twiro added this to the 2.0.0 milestone Jan 25, 2022
@twiro twiro self-assigned this Jan 25, 2022
@twiro twiro mentioned this issue Jan 25, 2022
18 tasks
@timokleemann
Copy link

Much appreciated, Roman!

@twiro
Copy link
Owner Author

twiro commented Feb 4, 2022

Great you're interested, @timokleemann – I'm really happy if someone else also finds this feature helpful (and probably will use and test it) :)

Technically I think I got everything working by now and hopefully I can do some more tests later, so I can publish a new stable release candidate this weekend.

Here's a little preview of what's coming with this latest update:

Extension Settings:

Bildschirmfoto 2022-02-04 um 10 01 42

Datasource Output:

<multilingual>
    <languages>
        <language handle="de" mode="active" default="yes" current="yes">de</language>
        <language handle="en" mode="active">en</language>
        <language handle="es" mode="active">es</language>
        <language handle="fr" mode="restricted">fr</language>
        <language handle="ru" mode="restricted">ru</language>
    </languages>
</multilingual>

twiro added a commit that referenced this issue Feb 4, 2022
- Implemented Support for restricted languages and regions [#23]
@twiro
Copy link
Owner Author

twiro commented Feb 4, 2022

This feature is now available in the integration branch :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants