Comments (6)
"Same thing for black and white list"
Would you elaborate? Expected vs. observed behavior?
from i18n.
If the webconfig has a configuration for
- i18n.BlackList
- i18n.WhiteList
- i18n.NuggetBeginToken
- i18n.NuggetEndToken
Botht the parser and the module that localizes the text should taken them into account
Observed: With the following configuration:
<add key="i18n.BlackList" value="\bin;" />
<add key="i18n.WhiteList" value="*.cs;*.cshtml" />
<add key="i18n.AvailableLanguages" value="en" />
<add key="i18n.NuggetBeginToken" value="[||[" />
<add key="i18n.NuggetEndToken" value="]||]" />
The parser will use the new nuggets and respect the black and white list configuration but when the application runs the module will ignore these configurations and localize all pages with the original '[[[' and ']]]' nuggets
Expected: With the same configuration, the parser will observe the new nuggets and white and black list configurations and so will the application not translating the blacklisted folders when part of the request and only looking for the nuggets defined here
from i18n.
Just tested your exact config with a token [||[Home]||]
and it works. Are you using the latest build? If not, did you not get notification of the the commit above?
from i18n.
I'm using the version from yesterday morning, I'll update and check this again
from i18n.
BTW, we should change the default token, I'm getting tons of conflicts with JSON structures
from i18n.
Works fine in the latest version, thanks
I'm going to open a new issue to track changing the nugget, and we can talk suggestions
from i18n.
Related Issues (20)
- where to find i18n.PostBuild.exe? HOT 4
- could not translate when using combine string (javascript) HOT 4
- After using PostBuild.exe, my translations stay between exclamations HOT 1
- null check missing for httpcontext.response.contenttype HOT 1
- HTML markup in a formatted string displays as text HOT 1
- Javascript localization in MVC 5 project HOT 2
- Contribution support HOT 1
- Translate Password error messages? HOT 4
- Problem when displaying Spanish "ñ" character HOT 5
- Http Custom errors no longer work when i18n.LocalizingModule is added to modules HOT 5
- Javascript localization not working because browser cache HOT 1
- Arabic and French translation doesn't get replaces in javascript files
- where is i18n.LanguageHelpers.ParseAndTranslate? HOT 3
- Announcing release 2.1.16 HOT 1
- only every other nugget in messages.po is being translated HOT 4
- 2.1.16 doesn't translate some items HOT 4
- Announcing release 2.1.17
- vb.net issues HOT 4
- problem with axd file
- Issues with rendering special character inside i18n translation jQuery Rails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18n.