I have created messages.zh file in conf folder of play project.When i am starting the application it is showing me error mentioned below but if i copy paste the same content in messages.en it is working properly.I suppose the problem is with file extension.But what extension i should put for Chinese message file.Kindly suggest me how to resolve this issue.
This is the error which i am facing while starting the application
string matching regex \z' expected but�' found
Thanks
Check the encoding of your messages.zh file. I believe it needs to be UTF-8.
Related
I am working on generating documentation for swift framework and documents are generated by jazzy.
Please see the image. This is the generated output folder
What is this "docsets" folder. What is the purpose of it ?
Looks like it is intended for tools like Dash to injest the documentation.
I aaded webjar(foundation 6.3.1) via Maven and how i can figure out the link to resource? I mean that I cannot see folder with generated resource like css, js etc. in Intellij output folder(target) so how i know which is valid path?
I found valid path to bootstrap as example and i tested it
/webjars/bootstrap/css/bootstrap.min.css
it works but if i have another webjars i have to guess what is path to it?!
Output directory content
I found solution, maybe it will be usefull for others. In html code you will get prompts from IDE when start with webjars. Example below
IDE prompts
After several attempts I have succeed to packaged one extension by using instructions from this PDF - http://info.magento.com/rs/magentocommerce/images/packagingmagentoconnectextensions6%200.pdf
Everything looks good, but when I try to upload the extension, it throws an error, saying that the filename should be in the format XXXXXX-1.0.0 format without the extension, where xxxxxxxxx is my form key, but when I try to upload the renamed copy of the packaged file (one that Magento connect manager extension generated), it throws these 2 errors:
An error occurred during upload to channel MagentoConnect 1.0: Unable
to upload new release XXXXXXXXXXXXXXX-1.0.0.tgz
An error occurred
during upload to channel MagentoConnect 2.0: Package
AnattaDesign_AbandonedCarts not found
I did a bit of research on the error and got to know this has been an issue with Magento in the past and people were facing the exact same issue. On some of them, I found #rondata replying back who was the community manager in back those days, but not sure if he still is.
So any clue how can I get this issue resolved? Whether it could also be an issue with how I packaged the extension? Or may be who is the current community manager and where can I seek some escalation on their uploader bug?
So I think I know what the reason is. When you are asked for the extension key when creating a new extension on magentocommerce.com, don't add the form key over there as your extension key. It's meant to be something unique like Namespace_Module.
When you do that, the error should go away and you should be all good!
I'm using IDEA IDE to create i18n..
I created English version of my property file and then created a Russian one.
But when I run my web application I saw Ïðîñìîòð Íîâîñòè instead of my text in Russian..
Tell me please what was wrong in IDEA IDE or whether there's a bug in resource bundle plugin.
UPDATE
When I write I18n in eclipse and fill in all necessary fields into Russian language in Eclipse resource bundle plugin instead of Russian text I saw something like this u0443u0434u0430u043Bu0438u0442u044C but when I start my app it displays all well..
And when I start project in IDEA IDE with such properties everything works fine..
I am able to recreate your issue using a different language (Chinese) ... I just tried this in my IntelliJ IDEA instance (I am running IntelliJ IDEA 11.1.3).
I have a ResourceBundle and I dropped in Simplified Chinese characters into my Resource Bundle as follows:
messages.properties
user.label=名称
When I ran my Grails app through IDEA, I got characters ?? instead of the Chinese Characters 名称
This is a bug with IntelliJ Resource Bundle Editor. Here is a link to the Issue:
http://youtrack.jetbrains.com/issue/IDEA-90460
I know it does not give you a fix, but at least it explains to you why it is happening and why you do not see the issue with Eclipse.
We've been using protobuf for a while at work and I decided to write a little console app for a client which would allow them to do some testing on site.
I started a new c# console app and downloaded google.protocolbuffers and protobuf-net from nuget.
What I'm trying to achieve is to turn my "messages.proto" file into "messages.cs"
I've tried to get the protobuf to build the messages file on a prebuild event but with no success, it seems the command arguments have changed since our first implementation. I followed the example here
http://code.google.com/p/protobuf-csharp-port/wiki/ProtoGen
And added the following pre build event
"$(projectdir)packages\Google.ProtocolBuffers.2.4.1.473\tools\protogen.exe" --proto_path=./protos protos/messages.proto --include_imports -output_directory=./
However I get the following error
Input file protos/messages.proto doesn't exist.
I've tried all sorts of combinations but nothing seems to work. Am I approaching this all wrong or is there a gotcha here? Any help much appreciated!
Have you tried using the absolute paths? I vaguely recall having a similar issue myself that turned out to be an issue with it not resolving relative paths correctly.