I read this from the Angular documentation:
https://angular.io/guide/i18n
and something isn't clear to me: Once translations are added to an app and the source files are created with "ng xi18n" it will happen that the app code is modified after words and new translations added. How these new translations are identified and how should they be integrated into the existing language translations? I mean the first translation files went to the translator, came back, were integrated but now the newly added elements to be translated are not in there. How is the process of integrating these new elements to translate?
Thanks a lot for any feedback !
Regards,
Fabianus
Related
I started a new application on the SAP HANA Cloud platform. However when I start it i get the following errors:
GET https://webidetesting5949052-p1940909951trial.dispatcher.hanatrial.ondemand.com/resources/sap/m/messagebundle_de_DE.properties 404 (Not Found)
GET https://webidetesting5949052-p1940909951trial.dispatcher.hanatrial.ondemand.com/webapp/i18n/i18n_de_DE.properties 404 (Not Found)
GET https://webidetesting5949052-p1940909951trial.dispatcher.hanatrial.ondemand.com/webapp/i18n/i18n_de.properties 404 (Not Found)
and so on....
However I never started to use i18n and I just want to disable it. I cant find anything in the manifest and I am not loading a i18n model anymore.
How can I resolve this issue? I dont want to use i18n, as it just clutters my code.
The first missing file is from within the framework. Some of the controls in sap.m have translatable text, and afaik there is nothing you can do about it.
The other lines suggest that you are instantiating an i18n model somewhere. Check your manifest.json or Component.js or neo-app.json for such an entry. These are the files where you'd normaly setup your models, including the i18n model.
Edit: It seems like you are using the WebIDE. To remove i18n from manifest.json, switch to Code Editor
If you don't want to use i18n in your code, don't use it. But the code of the framework itself heavily relies on that feature and no hardcoded strings are stored inside a .js file. If there actually was a way to disable i18n, then for example the sap.m.DatePicker wouldn't work anymore, since all strings for months and days are stored in one of the property files.
Btw I think having your logic (JS code) separated from content (i18n strings) is awesome and quite the opposite of cluttered code. All big mobile platforms (Android, iOS) and probably alot more frameworks support that feature. But that's just my 2 cents.
TL;DR don't instantiate your own i18n model, ignore the framework's errors
I'm using Typo3 for the first time and have been asked to update a site built on it.
Making changes to existing templates so far has been OK since they were mainly CSS changes or replacing images. Now though I need to create a couple of new page templates.
What's the easiest way to go about this? The existing site has a home.html and layout.hmlt in the fileadmin directory. Do I need to create a new html file there, if so how do I use this as a new template for some of my pages?
I'm coming from a mainly WordPress background in terms of CMS (I've nearly given in a recoded the site as a WordPress site since I think it would be quicker at this stage) but I'd really prefer to figure this out.
Any suggestions would be greatly appreciated as I'm pulling my hair out trying to read through the documentation and getting nowhere. The site is using Typo3 version 4.4.6
Thanks!
How you add a new template to your page depends on how templating is handled. Sadly TYPO3 has a poor templating out of the box, so there is most likely an extension that does the job on your site.
Probably one of these:
automaketemplate
templa_voila
flux & fluidpages
Check if one of these extension is installed and add a new page template according to the extensions manual or specify your question afterwards.
Edit:
If plain TYPO3 was used, you'll find something like
page = PAGE
page.10 = TEMPLATE
page.10 {
file = fileadmin/myTemplate.html
}
in your Typoscript. You can add tmplate files like the ones that are already there. To use a different template on a page, you have to replace the page.10.file with the template you want to use. This can be done with a new template record (crated in backend via the template module). But this is a rather anoying procedure to change the template, because you have to create each time you want to change the page template for a page and its children. That is why mostly extensions are used for this.
The out of the box situation gets better with newer TYPO3 versions but in 4.4.6 there are no Backend Layouts that could be uses for a template switch ot something like that.
In Addition to change the mere file you have to adjust the subparts or marker that are filled with the content. You'll find that configured in your TypoScript as well
is there a way to apply a template to an existing document?
It only seems to work when I create a completely new document, and i don't want to copy&paste everything.
I'm searching for the same solution. The only thing I've found is a LibreOffice extension to do it. I just tested it and it worked, only I had to add the .oxt extension after downloading it.
Template Changer
p.s. As this was not a programming question, it may not be appropriate for this site.
Simple solution without installing an extension:
Create a new document in the desired template.
From the menu, choose Insert -> Text from file ... and select the document you would like to transfer to the new template.
Then the old document appears in the new template.
The answer from LaTechneuse no longer seems to apply (2020-08-09, v. 5.4.4.2). There is no such option under "Insert"...
However there is an option Insert --> Document. This seems to do the same thing. No doubt the menu command's name was changed because it was felt that LibreOffice users were having it too easy. Never waste an opportunity to confuse people needlessly and cause them to waste their time.
Neither template changer worked nor could I find one of the options that should reside in Insert->...
However, I used manage templates to import the new template and then in the presentation to change, in the sidebar the master slide view.
And it worked!
I was wondering if page templates can be built instead of individual components in Teamsite 7? I've seen other cMS systems where it is just a page template that has lots of functionality built I and you can "switch" on and off elements that you want to display instead of having to drag components onto a page? Is this possible?
Old question, but since I just came across it:
Yes, TeamSite supports templates (.template) files which can be partial or full page templates. The default location is iwadmin/main/livesite/template.
I recommend downloading the developer guides from Autonomy's web site for detailed information.
Templates in teamsite/livesite is like a bag that can contain components. But in order for a functionality to be developed in teamsite/livesite we need to create components. certainly we can avoid dragging and dropping components in each page by creating templates and dropping components within it for once. Keep in mind templates are bound to layouts. for each type of layout we need to create a template. Please have a look at TS_7.3_SiteDeveloper_rev1, Chapter 5.
Yes, you can create templates instead of dragging components.
Since, TeamSite supports templates (.template) files which can be partial or full page templates and resides at location : iwadmin/main/livesite/template.
So, whenever you try to create a new page everytime the HTML code required for that page gets automatically added with the template and layouts you selected.
But, again this is not good since you can have any number of templates you need but this could create confusions at times when you try to create a new page since you will need to remember every template name and contents that you will need for a particular page so it's better to have small lists of templates and layouts since then we can say that there is reusability in our application/website which we are going to develop using Teamsite and Livesite.
Please vote the solution if its helpful.
Thanks!
I looking for either an open source (or otherwise) php script/library/code that will provide me with a similar email composer that Mailchimp and Campaign Monitor have.
I've played around with lots of wysiwyg editors (eg: tinymce, ckeditor) but, they don't work very well for allowing users to compose emails.
Mosaico Editor is the first open source email template builder of this kind (AFAIK).
You can find a free to use deployment (working also as live demo) at http://mosaico.io and you can get sources at https://github.com/voidlabs/mosaico
I choose blocks from a set defined by the "master template", then you fill you contents and change their styles in a WYSIWYG style. If you're on a large window you can also have live preview for the mobile version.
The master template defines what are the blocks, what you can edit and what you can style and it contains any html trick to make it compatible with most clients: this means you can change the editor behaviour a lot by simply writing a new master template.
It is 99% javascript (IE10+, and any other modern browser) and depends on server-side functions only to do "final inlining" and "image upload/resizing"
Next generation tool for building templates without coding
Grapejs official site
GrapesJS is an open-source, multi-purpose, Web Builder Framework which combines different tools and features with the goal to help you (or users of your application) to build HTML templates without any knowledge of coding. It's a perfect solution to replace the common WYSIWYG editors, which are good for content editing but inappropriate for creating HTML structures. You can see it in action with the official demos, but using its API you're able to build your own editors.
I'm in the process of building one but as a designer it is a work in progress! I'd suggest looking at PHP template engines. They have a similar functionality. Most however will use php variables inside the html page instead of tags.
Another oprion is to check out Perch it is officially a CMS, but is really lightweight and might get the job done for you.
Hope that helps even though it is a year after you posted the question...
EDIT: Actually just stumbled across this thread which links to the new CKEditor - looks pretty cool.