Change Rubens Configurator Language after initializing - roomle

This is my first ever question on here so please excuse if I don't provide something that is needed for you to answer the question.
Anyways. I'm currently implementing a roomle configurator in a web page, that uses the weglot translator. However, the iframe isn't translated, because it is in another window element.
I'm trying to update the language in the configurator, when the language is selected in the dropdown. I found, that i can change the "locale" attribute when loading the configurator, but coulndn't find if there was a way to update the locale attribute down the line.
Thanks in advance for your answers

Unfortunately it's not possible to change the language of the Rubens configurator during runtime.
It would be possible to reload the configurator when your user changes the language in the dropdown and re-open the current configuration again.

Related

TYPO3 Localizer Extension - Cart Configuration

So I am trying to learn a bit more about TYPO3 and Localization. So I am using the Extensions:
L10N-Manager
Localizer
I can create the base Localizer-Configuration but whenever I go into the Selector Tab and try to create a new Cart, I can't select any languages - which makes the created Cart "breaking" (a "global cart" is created but all fields are not available for editing and I can't view it in the Cart Tab of the Localizer)
I am wondering what I am doing wrong - I sadly didn't find any records on such problems or a better introduction about the configuration. All Tutorials just show how the Localizer Configuration is created and then they can simply create a cart.
Is this a known problem? Would be great if anybody knows a solution. Or a really good tutorial that shows step by step how to set up the configuration.
Info: I am using TYPO3 on my localhost (XAMPP) with TYPO3 Version: 10.4.13
Thanks ahead
The Localizer manual says for both, source and target language fields:
Important
Make sure each of the language records has been configured with the
necessary locales to distinguish between languages during the
translations process.
So did you configure the language records accordingly?
Most likely the locale values based on static_info_tables records have not been set, which is currently still necessary. So you should check your sys_language records for those values.
In upcoming versions of Localizer this will be replaced with values taken from the site configuration.

Is there a way to bypass Chrome geolocation dialog in Protractor tests?

I faced this problem, when automating an application with protractor.
Once I open a home page I get geolocation dialog with Block/Allow buttons, which didn't let proceed without selection either option
It turned out, that this dialog is not an instance of alert, that's why browser.switchTo().alert().confirm() didn't work
Passing '--disable-notifications' argument to Chrome also didn't solve the problem
Research online didn't give any positive results. How to solve it?
The solution to the problem is to pass "prefs": {'profile.default_content_setting_values.geolocation': 2} to capabilities object in your protractor.config.js
Below is another option that does pretty much the same thing.
So chrome may take an argument --user-data-dir=/tmp/chrome which specifies profile to open chrome with. If profile doesn’t exist at specified directory it creates default one.
Then if you open /tmp/chrome/Default/Preferences you’ll see an object with preferences. You needed to set default_content_setting_values.geolocation to 2 (not 1 or 0) to make it NOT prompt that dialog

Firefox SDK: simpre-prefs: is it possible to change the label of the control-button?

I am writing code that capture hotkey after user press control-button in preferences of addon - I want to change the label when user push the button and change again when user push some keys (to display the new hotkey). Official documentation about simple-prefs not mention that I can change something visual in loaded preferences view and in debug I looked into object prefs and saw that my preferences is just a strings - only the values and types.
I do not think you can unless you hack the preferences page. I saw your other question and the example add-on from the answer. It's not using simple-prefs and I don't think it's a great user experience either. I have the same problem and was thinking to use a control button to bring up a panel on which you can listen to the keystrokes and print them there. A panel is all html so you can do whatever you like.

Change help link in the Visual Editor of MediaWiki

Is there a way to change the help link in the toolbar dropdown in the new visual editor of MediaWiki?
I tried setting
"visualeditor-help-link":"mw:Help:VisualEditor/User guide/de"
in
"extentsions/VisualEditor/modules/ve-wmf/i18n/de.json"
as proposed here, but then my MediaWiki could not parse the JSON file. My goal is to link to the MediaWiki help page, that can be found here. The normal version:
"visualeditor-help-link":"[https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/de]"
did not work, neither did this:
"[[{{MediaWiki:visualeditor-helppagelink}}|Hilfe]]"
You should never ever change the source code of MediaWiki core or any extension. It makes an upgrade process much more hard and complicated. There are other ways to achieve a high customization of the user interface language :)
For your problem, it should be enough to create the following page in your wiki (like any other page, but you need the editinterface user right, which is assigned to sysops by default):
MediaWiki:visualeditor-help-link
Put the link you want to use into the textarea (without any wikitext, e.g. "Help:VisualEditor" (without any ")) and save the page.
After reloading the VisualEditor (maybe you need to clear your browser's cache using Ctrl + F5) the link should point to the new target you specified in the message above. If you use a message cache, it is maybe needed to rebuilt it.

How to get an about screen in your settings bundle in ios?

I have an easy question, though I'm not sure if it's doable or not:
How can I add an "about" page to my settings.bundle in iOS?
I have seen it done before. Just have a look at the facebook application settings. When you tap "about", you get an entire page full of text.
How is this done?
Are they relying on internal API perhaps?
It is called a 'Child Pane'- From Apple Documentation;
"The child pane type lets the user navigate to a new page of preferences. You use this type to implement hierarchical preferences. For more information on how you configure and use this preference type, see “Hierarchical Preferences.”
The key for this type is PSChildPaneSpecifier."

Resources