I have a component with Filter tabs to show a list of translated articles.
(All works good as soon I donĀ“t change the language-settings.)
That list of articles content should update when the language changes:
On the component where I show the resulting List, the language changes correctly, but exercisesData does not update, and it keeps the old language setting:
Do you know how can I make exercisesData update with the new language (language changes in redux)?
I hope it is somehow clear and what I wrote makes sense to you.
Thanks!
Related
I am using text input in react-native,now my requirement is that i want to update my Text-Input at same time while user type something like "Hello" and get altered in some other language and set over there.How can i set my new text on text-input while at typing?
dynamically translating letters, i dont think makes sense as even if you use an API or some node module for translation how would it get to know what the user is going to end with typing, there is no letter to letter mapping possible untill you donot want it to make sense explicitly.
do you get what i am trying to say?
I want to create an e-commerce shop with : WP, Easy digital downloads and Frontend submissions.
To do so, I need to customize forms. As an example: I need to add & remove (or hide) fields on the fes_registration_form without breaking functions behind it.
I don't have a good vision of how the easy digital downloads plugin works so I don't know where to do my updates (don't want to break everything).
Could you please tell me how to proceed to add and remove fields on the fes_registration_form ?
I need to do the same job on the profile form and on the new product ones.
thank you
You can easily add and remove form fields for the profile and product submission via the built in form builder. There is a simple drag and drop system.
https://docs.easydigitaldownloads.com/article/962-frontend-submissions-form-builder
For further custom work you would need to get your hands dirty. I have just completed a major project in totally changing some functions within the forms. This involves a combination of hooks, filters and extending some of the classes provided by the FES extension.
$name token is displayed on page content instead of item's title text.
Item has standard values defined and ofcourse uses $name for title place.
I investigated the versions of the item and latest version is in use. Application uses only one language en-US and developed using sitecore 7.2 mvc and also webforms.
Rebuild indexes, but the issue still exists. Any leads on this?
Check if it is happening while creating new items also. If yes then check your logs there may be some error which can help. If it is working fine then it may be happening because you have created your items before creating your _standardvalues item. In this case you can write a custom script/code to fix it. You can also try this https://github.com/rauljmz/Sitecore.Rocks.ReplaceMacros .
I've just installed Flags module and it looks awful when on the bottom I see "Flag this item" link. The only thing I've found in configuration is enabling it to show as normal link. Still I haven't found how to change position of this link. Is it even possible to change link's place? I have installed CCK Blocks but it doesn't give me any option to get rid of it. If someone know or suspect what's possible - please help me.
Try the Display Suite module, this module is integrated with many modules like flag, title etc...
Display Suite allows you to take full control over how your content is displayed using a drag and drop interface. Arrange your
nodes, views, comments, user data etc. the way you want without having
to work your way through dozens of template files. A predefined list
of layouts (D7 only) is available for even more drag and drop fun!
https://drupal.org/project/ds
You can move and generate custom layouts for the fields/properties on the entity display formatter: teaser, full...
We need set locale in data-dojo-config before dojo loaded so that dojo.i18n will work with this locale. Is there any workaround that we can change this locale in dojo/_base/config after dojo loaded so that any further dojo.i18n call will work with this new locale?
I have a single page application, by carefully design, I already be able to recreate all my UI widgets dynamically anytime. I want to add a Select somewhere so that user can change languages on the fly. Currently the only solution I have is put a queryString locale='newLocale' at Url and force browser refresh. That works but everything User have done lost and with a fresh start. That's not what I want.
Any idea? I don't afraid some changes of dojo to make this happen since my application will be built as a single layer and deploy to customers.
According to dojo's documentation, you cannot change the locale once it's loaded. See this page from their documentation, the relevant line is:
Once Dojo is loaded, it is not possible to change the locale for the
page.
Your description of adding a new parameter is what I've done in this situation, you can specify the locale property on the dojoConfig object to override the default locale.
EDIT: There is an open bug for this use case, see https://bugs.dojotoolkit.org/ticket/17196. In that ticket there also appears to be a workaround that basically involves manually loading the resource file of the language you want to use and updating any text.
So, adapting their example (http://jsbin.com/aquviq/1/edit), this would run after you initiate a change locale action:
require(['dojo/i18n!dojo/nls/' + resourceModuleWithLocale], function (resource) {
/* in here, you must set all of the text manually to the values in the resource object */
});
It still seems like a lot of work, but I suppose that's one possible way to accomplish this.