I need help with Prestashop translations.
I would like to add a few strings to translations in blockcms module. I've added them to .tpl file in this format:
{l s='Awards and certificates' mod='blockcms'}
and I've added to file modules/blockcms/translations/pl.php following line:
$_MODULE['<{blockcms}prestashop>blockcms_0b7b4b09a465b93640bc3f8822ff26eb'] = 'Nagrody i certyfikaty';
where 0b7b4b09a465b93640bc3f8822ff26eb is 'Awards and certificates' in md5.
Unfortunately translation is not showing in BO and string is not replace in store... What is wrong?
I guess I should register new string to translation in blockcms.php file, but I've looked there and it didn't help me to understand how it should be done.
Thank is advance for any replies ;)
To add a translation, you have to translate via backoffice : localisation > translation.
You should not edit translation files
Related
I would like to use flutter_markdown package.. So here is the example:
Markdown(data: markdownSource); where markdownSource here is a String, but what I would like to do is..... I have md String which I store inside https://mylink.co.id/trial.md and is there a way to read https://mylink.co.id/trial.md and show it using Markdown() ?
Yes this can be done. Create the markdown string and save it in a server. Make an API call and get it's content. (don't miss to await this step). Then you can use the response value as data:response
I am working on a meteor-Angular project, where I am using #ngx-translate for translation.
Now when it comes to HTML files the translation works perfectly fine with a translation JSON file.
But when it comes to the ts file I do not know how to translate the words. Here is an example -
I have tried a lot how to translate .ts file but somehow I couldn't find a single solution to this problem. Does anyone know how to solve this problem?
you can use the instant method in the component.
https://github.com/ngx-translate/core#methods
this.column : [
{header : this.translate.instant('ACCOUNT_TYPE')},
{header : this.translate.instant('NAME')},
...
]
you can look my answer
for currect working after f5 u need to use appInitializerFactory (don't forgot add it to providers like in answer)
you should translate when sending to HTML whit the pipe.
If the column is a FOR, also for each word use the pipe. ( column[0] | translate)
I am trying to open and edit a .raf file (maybe the Fuji RAW Image File, the result file of a software named SleepSign http://www.sleepsign.com/ ). But I faild to convert it to text file,such as .txt,which I could edit easily and replace the result to what I want. So I can load the replaced-file in SleepSign for manual correction. I test almost all the ways to convert or edit it, but it always break down with a error.I hope for some advises or tools to solve it. Thanks!
You can trie with this one : https://www.onlineconvert.com/by/raf-to-txt-converter.
for infoemration .RAF is a .RAW priority format created by Fuji.
I am trying to add a digital signature to an xlsx file... Can't seem to find any resources for this (other than adding signatures to literal/regular xml files). Is this possible with docx4j? I see it includes jaxb-xmldsig but there are no samples that I could find. Perhaps someone could point me in the right direction?
EDIT: Per Jason, I looked at the differences via the demo webapp....
There are two new entries in [Content_Types].xml:
<Default Extension="sigs"
ContentType="application/vnd.openxmlformats-package.digital-signature-origin"/>
<Override ContentType="application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml" PartName="/_xmlsignatures/sig1.xml"/>
Two new parts within a new top level directory (_xmlsignatures):
/_xmlsignatures/origin.sigs
/_xmlsignatures/sig1.xml
There is also a _rels directory within _xmlsignatures which contains a single file origin.sigs.rels. I can post more info if that will be helpful.
It is not the DigSig from the extended properties ?
see :
http://www.schemacentral.com/sc/ooxml/e-extended-properties_Properties.html
see :
http://msdn.microsoft.com/en-us/library/documentformat.openxml.extendedproperties.properties_members(v=office.14).aspx (DigitalSignature)
see : docx4j\xsd\docProps\shared-documentPropertiesExtended.xsd
Digital Signature > contains a binary Blob
If it is, you can add the DigSig to the propertie by editing the extendPropertie
DocPropsExtendedPart docPropsExtPart = wordMLPackage.getDocPropsExtendedPart();
Properties extProp = docPropsExtPart.getContents();
ExtendedProperties.modifyProp(props.getExtendedProperties(), extProp);
wordMLPackage.setPartShortcut(docPropsExtPart, Namespaces.PROPERTIES_EXTENDED);
:)
I have one ridiculously silly question and most of you would like to reffer me to Google right away, but that didn't helped me out within the first hour. I suppose I didn't knew how to look for. I'm having a PHP file and I'd like to have it in base64 yet I can't get it to work anyhow.
1) I encoded my PHP script to base64(and included the PHP tags). It'll look as following : JTNDJTNGcGhwJTIwVGhpcyUyMGlzJTIwdGhlJTIwUEhQJTIwY29kZSUyMCUzRiUzRQ==
This kind of base64 won't execute so I added the PHP tags to it although the encoded file already had it. Still didn't worked out. Removed the tags from the base64 and tried again, but still didn't worked. Then I tried adding the PHP tags and inside of them added :
eval(gzinflate(base64_decode('base64 here')));
Still didn't worked out anyhow. Is anyone here kind enough to tell the kiddo how to run a base64 encoded PHP file properly?
Would be really appreaciated. :)
A simple code:
$source = "JTNDJTNGcGhwJTIwVGhpcyUyMGlzJTIwdGhlJTIwUEhQJTIwY29kZSUyMCUzRiUzRQ==";
$code = base64_decode($source);
eval($code);
or even shorter:
eval(base64_decode("JTNDJTNGcGhwJTIwVGhpcyUyMGlzJTIwdGhlJTIwUEhQJTIwY29kZSUyMCUzRiUzRQ=="));
Do you want to encrypt your code? If so, this is not the right way. Use a accelerator like this one or this one. They will crypt your codes and make them even faster!
If you are going to use base_64 to encode your php file then the encoded text need to seat in between the php tags including the base_64 tag.
Example:
If your code is:
JTNDJTNGcGhwJTIwVGhpcyUyMGlzJTIwdGhlJTIwUEhQJTIwY29kZSUyMCUzRiUzRQ
Then your code should look like:
<?php eval("?>".base64_decode("JTNDJTNGcGhwJTIwVGhpcyUyMGlzJTIwdGhlJTIwUEhQJTIwY29kZSUyMCUzRiUzRQ")); ?>
Basically your basic code will look like this:
<?php eval("?>".base64_decode("Code Goes here")); ?>
There are more simple tools that can give you this option
Check this out: PHP Encoder & Decoder with Domain Lock