Pootle updating template - pootle

I'm using pootle 2.7.1
I've update my template file, the problem is that the new template only reflects on new languages added and not on the languages that are currently present in the project.
What should I do to update the template that the current languages are using?

Template files are only used to initialize new languages via the web UI for the time being, that means you need to update existing localization files out of Pootle, then import them back.
So basically:
sync_stores to pull the latest state of your translations
Merge these with the latest templates using the tool of your choice
update_stores to import updated translation back to Pootle

Related

Xpages : Possible to inherit all Select 2 components

I have got Select2 working. Awesome, awesome component.
We have a db with some common elements which we inherit to databases. I would like to add Select2 to this db, so it will be easily available to databases, but don't know how to do that, as you have to put some items in the package explorer.
Any way to do this?
It is possible if you inherit the whole template:
create a database with all design elements you want to have as default in a database including Select2 parts in WebContent folder
define this database as template "CommonElements" (or another unique template name) in database properties
define the template "CommonElements" as "Inherit design from master template" in every database where those design elements are needed
and make sure that every additional design element has set "Prohibit design refresh"
or inherits from a design template.
In case you have additional elements in WebContent folder set "Prohibit design refresh" flag to those design elements with File > Application > Set Prohibit Refresh Properity... too
All design elements including all WebContent folders are inherited from master template when you execute File > Application > Refresh Design... or when designer process runs on server.
I don't think that is possible. You could set up a central "resources.nsf" with the select2 components and load all the resources you need (manually) from all other databases.
Unless your users do not have internet access (either fire-walled or offline) you may as well just use a CDN. That way all your users will have a cached version of the download library on all of your sites and you don't have to worry about hosting it somehow.
https://cdnjs.com/libraries/select2
for example
It might also be worth looking at the Import and Export from Domino Designer project on OpenNTF. It allows you to create an portlist.xml file, which tells the plugin which files to import. It still requires a manual action to import, but will allow you to overwrite files.
Although using plugins is the place to aim to get to, this is a perfectly valid and good practice method for handling copying all relevant files into an NSF. It's used in XPages OpenLog Logger project on OpenNTF, for the NSF-based option.

TFS 2015 won't upload custom process template

We have a customized version of the Agile template that we've been using since TFS 2013. I have upgraded the template for 2015, which was no big deal. But when I go to upload it I get error "VS402479: You can't overwrite the Agile process template, because it's locked".
I have followed the instructions from MSDN to upload an updated process template. I have changed the name, description, and minor version strings as described in the documentation.
Here are the values from the metadata node in my ProcessTemplate.xml file:
<name>Custom Agile</name>
<description>Custom Template based on MSF Agile</description>
<version type="ADCC42AB-9882-485E-A3ED-7678F01F66BC" major="14" minor="20" />
I have tried changing the major version and the minor versions to different, higher increments, and receive the same error.
If I change the type to a different Guid, the template loads just fine. The instructions imply that the Guid should be the same. I'm assuming this is so TFS knows the relationship between the built-in templates and custom templates they are based on.
I have a bunch of team projects to update the features on once the upgrade is complete and do not want to break the relationship to the built-in Agile process template if I can help it.
You can no longer edit or delete the built in templates in TFS 2015 so you'll have to change the Guid if you want to upload your template.
Process Template changes to TFS 2015 RTM
In TFS 2015, the system templates are locked and cannot be changed. That change allowed us to overwrite the templates we ship, and with that we were able to rename the templates to Scrum, Agile and CMMI.
To create a custom process template based on a shipped template, simply export an existing template, give it a new name and version, and then reimport it by using the Process Template Manager. Existing projects are unaffected by this change, which means that they can continue to have their process customized by using witadmin.
We have determined that this issue is not a bug. To upload a custom process template, not only the Process template name needed to change, but the version id also needed to change.
In the ProcessTemplate.xml file, find the following settings:
<version type="ADCC42AB-9882-485E-A3ED-7678F01F66BC" major="15" minor="10" />.
Change GUID string to another value. Then try to upload the custom template again.
You can generate a new Guid by using this C# code:
Guid g = Guid.NewGuid();
string s = g.ToString();

I just want to know where we need to make changes while customizing odoo?

I am new in odoo. Can u please tell me where I need to customize an odoo business application. We have a database, XML, python files etc.
Is there any need to make change in view_XML, python or pg admin?
To customize an Odoo application you definitely don't have to change the database manually (I guess that's what you mean by pgadmin).
You should not make changes to core Odoo modules or any module for that matter, instead you should create your own modules to modify existing modules or add new features.
Themes, snippets and basic view customizations (rearrange fields or show and hide existing model fields) doesn't require to write any python file (other than the required module python files).
If you want to make extend current models or add new models then you need to create new python files
The Best way to customize odoo Module is to build a new module.
For Creating new Module best tutorial is Technical Momento book and Document provided by odoo on www.odoo.com

How to create Eclipse custom java-based new File Wizard based on code templates?

I'm just starting into some Eclipse (juno) plugin experimentation. A key part of the plugin I want to create needs to provide the user with the ability to create New java-based classes. These classes may be 1 of 3 different types.
Is it possible to do this using variation of the NewFileWizard that will use a template for each class type under the hood?
For example, when the user is in the new Custom project they created from the plugin, I'd like them to be able to do a right-click, "New" and be given 3 choices. Depending on the choice, the wizard will use a corrosponding code template - filling in class name, package name, etc., and then generating the file in the proper project folder.
Please let me know if you need any clarification on what I'm asking.
Is it possible to do this using variation of the NewFileWizard that will use a template for each class type under the hood?
Yes.
You're basically going to have to get the Eclipse source code for the New File Wizard, bring it into an Eclipse plug-in project, and modify it to meet your specific needs.

DTF: Update a File within an Archive Without Extracting It

I am using the Deployment Tools Foundation bundled with WiX 3.5. There is an archive that contains a file that I want to update without having to extract it first - the edits are based on user inputs during setup.
How do I obtain a reference to this file, perform the updates, and save the changes to the file without needing to extract it from the archive? The custom action is being written in C#.
I am using Wix v3.5.2415, which is the same version for the DTF assemblies.
Try using one of the free c# libraries to interact with a zip file.
For example:
SharpZipLib
SevenZipSharp
I'm not sure exactly why you are trying to avoid unzipping. Is this a silverlight xap file by chance? If so, I recommend a different approach like using initParams.