Odoo 13 fields/bottons translations - odoo

How I do translate the same fields and buttons in odoo 13 WEBSITE FORM module, like "Choose file" and text in the field "No file chosen".
[sample][2]
Thanks :)

If it is in your model and you may want it in different languages
you can
go To setting in odoo 13
menue Translations
export file
select language and FileFormat
csv and Export
download it
and add to projekt in pycharm forexample photo
image #1
image #2
If you just want one place and in a specific language:
string="every things for show button" xml:
<button name="choose file" string="show file" type="action"/>

Related

How to create keymap (shortcut) for opening/navigating certain file in PhpStorm/IntelliJ?

Is there any way how to open/navigate certain file in current project just by hitting one key? How to map the shortcut to do this?
For example I have three files "file-one.php", "file-two.php" and "file-three.php" and when I press F12, editor would open file "file-three.php" and focus main editor window.
You can do this -- using Bookmarks with mnemonics.
You can bookmark actual file instead of particular line (yes, you can do it -- just do it while focus is in Project View panel) -- you will see assigned mnemonic symbol next to the file name.
In general:
Shortcuts are rather predefined and limited to 10 only ("Bookmark 0" ... "Bookmark 9").
By default it will be Ctrl + 1 on Windows (depends on keymap used) .. but you may replace them by another one (look for Other | Bookmarks | Go to Bookmark 0 and so on in Settings/Preferences | Keymap).
Obviously ... bookmarks are project specific while shortcuts are IDE-wide setting.
Useful links:
Creating bookmarks with mnemonics
Navigating across the project
Keymap
NOTE: if you delete such bookmarked file (e.g. a log file that gets deleted on daily basis etc) .. then such association/bookmark will be lost once IDE will not be able to locate that file/target.
So either always keep that file present (make empty instead of deleting it) .. or re-bookmark it again.
Maybe you should try Recent Files function! Press ⌘E or ^E and you will get a list of recent files, then just type file name and it will filter redundant files.
Document:
https://www.jetbrains.com/help/phpstorm/navigating-to-recent-file.html

Translate label in Odoo 10

I am trying to translate this "Height" label without success.
<label for="label_height">Height</label><field name="label_height" nolabel="1"/>
I have run
/usr/bin/odoo -d demo_v10 --i18n-export=es_ES.po --modules=custom_labels --language=es_ES
To get translation file, I have translated all term and updated module both in command line -u custom_labels and in the UI, but I still see non-translated term.
Could anyone paste an example on how to translate a label?
Thanks,
Try below steps:
Export Translation:
Choose language, in my case Arabic.
File format : PO
Modules to export (ex: sales, stock, invoicing etc).
Click on the Export button and download ar_SY.po file
Change msgstr in *.po file.
Put that file in your custom module `mymodule/i18/ar_SY.po.
Upgrade the module
Hope it will help you.

nodejs npm libraries to access and modify microsoft word documents

Do you know if it is possible to search specific text like "xAx" into a Microsoft Word file (.doc or .docx) hosted on a website, replace it with some other text input by the user and make the file available for download using nodejs?
Is there a npm library that can do that?
If not it is possible to manipulate a PDF file instead? Please note that I do not want to create the document but manipulate a template file in the server.
Thank you for your help.
There is project https://github.com/open-xml-templating/docxtemplater which serves for replacing {placeholders} in a .docx files.
Also supports loops and images, check out demo (examples) on http://javascript-ninja.fr/docxtemplater/v1/examples/demo.html
If odt is an option (these files are open directly by MS Word besides Open and Libre Office and can be set with extension .doc so end users do not freak out) you can use HTML52PDF.
For example something like the following code will replace a string of text by a link:
require_once 'path/to/CreateDocument.inc';
$doc = new Html52pdf\createDocument(array('template' => 'template.odt'));
$format = '.odt';//.pdf, .doc, .docx, .odt, .rtf
//replace natural text
$doc->replace(array('replace me, please' => array('value' => 'external link')), array('format' => array('','')));
$doc->render('replaced_content' . $format);

why the multi line text field got strike through in alert mail of sharepoint

I have created an alert on a sharepoint custom list as immediate alert.when i modify the field of multiple line of text then in alert email i get the both previous as well as the current item value strikethrough .
can some one help me out why this is happening?
the alert works fine for the single line of text field.
Steps to resolve the issue :
Go to alerttemplate.xml file located at "C:\Program Files\Common
Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\"
Keep the copy of alerttemplate.xml for backup.
Edit original alerttemplate.xml file.
Depending on your listtype make the limit length 1000. (if list is custom list edit the line under GenericList and so on)
<Limit Len="1000" AutoHyperLinkNoEncoding="TRUE" MoreText="...">
<GetVar Name="OldValue#{Field}" />
</Limit>
iisreset
Shukraj Khadse
L&T Infotech | Vashi, Navi Mumbai | India

Is there an "Export to Pdf" plugin for Tiddlywiki?

Has anyone put together a plugin or tool for exporting a Tiddlywiki to pdf?
No, there isn't.
As a workaround, I write or find a decent printable stylesheet, then print to PDF.
Why not select the target tiddler to "Open in new window", and print it to PDF with any installed PDF printer?
To accomplish this I used a tool to convert HTML to PDF. These steps are a bit long but well worth it. Once you've got it working it is easily repeated.
In each tiddler that I want in my PDF, I mark with a specific tag; I used TableOfContents.
In each tiddler that is marked with this tag, I added an order field--to be used to define the order of tiddlers to appear in the PDF.
Ensure your HTML headers are properly defined for the document. I think tiddler titles use <h2>, so properly defining subheadings using <h3><h4> etc will ensure, if you want, a nice auto-generated Table of Contents in your PDF.
If you want each tiddler to start on a new page (in the PDF), we need to add this HTML to the end of each tiddler:
<div style = "display:block; clear:both; page-break-after:always;"></div>
With a completed TiddlyWiki document export the tiddlers to a single HTML file--this will be used to generate a PDF document. To export, go to the AdvancedSearch, select the Filter tab. In the search textbox enter your filter criteria--for me that was:
[tag[TableOfContents]sort[order]]
You'll see, immediately, on-screen a list of the tiddlers the system found based on that criteria. Then click on the Export icon and select Static HTML.
Optionally, but I think it's a great idea, manually create a cover page (in your favorite editor)--this will be a single HTML file to act as the cover page in the PDF document; call it cover.html. More on this later.
Download and install wkhtmltopdf (command-line tool to generate PDF from an HTML file).
https://wkhtmltopdf.org/downloads.html
Learn and get familiar with the wkhtmltopdf command line syntax. There are numerous features here so the command you end up with maybe lengthy. Use wkhtmltopdf /? to view general help, then wkhtmltopdf --extended-help to view details (well worth the read).
Generate a PDF document. At the command prompt navigate to the folder where your TiddlyWiki document is located. Here is a list of my favorite command-line switches. My app is installed in C:\Program Files..., so my command line starts with that...
"c:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe"
Add this switch for a header on the left:
--header-left "My document title"
For a header on the right:
--header-right "v1.0.0.1"
Font size of header:
--header-font-size 8
Display a line below the header:
--header-line
Spacing between header and content in mm (default 0):
--header-spacing 5
A left-footer ([section] is replaced with the name of the current section:
--footer-left "[section]"
A centered footer:
--footer-center "Page [page] of [topage]"
Footer font size:
--footer-font-size 8
Footer spacing:
--footer-spacing 5
If you want titles to hyperlink (in the PDF) to go back to the TOC:
--enable-toc-back-links
Make sure no background images get printed:
--no-background
I added special styles in the TiddlyWiki document for print media--to hide tags and clean up the spacing. Then I used this switch to ensure print media is used:
--print-media-type
Being in North America I want letter-size pages; I think the default is A4:
-s Letter
IMPORTANT--give the tool access to local files, otherwise your images will be missing in the PDF:
--enable-local-file-access
Use this if you want to have a cover page (see step 6 above):
cover "cover.htm"
And use this if you want a TOC automatically generated. Without a cover page, the TOC will be your first page, so create a cover page:
toc
After the toc identify your exported tiddler HTML file as input to the tool:
tiddlers.html
And, the final argument on the command line is the output PDF file name:
MyDocument.pdf
Export the tid to html.
Then in the terminal, issue:
html2pdf $myTid.html $myTid.pdf
$myTid is only a var and can be any name
:)