Comments (9)
I've taken a stab at this by embedding them.. sorry I haven't had a change to submit back. Will find time in the next month to clean up and submit a pull request:
https://github.com/colinbowern/i18n/tree/master/src/i18n.PostBuild
from i18n.
Thanks. I'll see what I can use from that---though I suspect I'll want to
do the embedding in i18n.dll have the extraction happen on demand at
runtime, as an option, like how ZeroMQ handles it.
On Tue, Jan 29, 2013 at 12:10 PM, Colin Bowern [email protected]:
I've taken a stab at this by embedding them.. sorry I haven't had a change
to submit back. Will find time in the next month to clean up and submit a
pull request:https://github.com/colinbowern/i18n/tree/master/src/i18n.PostBuild
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-12845584.
Daniel Crenna
Conatus Creative Inc.
cell:613.400.4286
from i18n.
@colinbowern I took a quick look and you have some other really nice enhancements here, so I think I'll want to bring them in. I'll let you know if I end up bringing them in before you do.
from i18n.
Also, why does PostBuildTask need to be inside i18n? Shouldn't it be in the i18n. PostBuild project? That class doesn't have any behavior in there that is not using msmerge and xgettext (I mean, besides going through the cs and cshtml files), hence I don't see it as an extension point or something that can be reused in another context besides an executable.
It even feels to me all the external tools could be packaged with the PostBuild executable.
from i18n.
True, and fair point. I was just thinking about the possibility of a
runtime scanner where you could rebuild your PO templates on
Application_Start, for example, inside the I18N.Register() method, so it'd
be one less thing to manage.
On Tue, Jan 29, 2013 at 1:49 PM, Raul Vejar [email protected]:
Also, why does PostBuildTask need to be inside i18n? Shouldn't it be in
the i18n. PostBuild project? That class doesn't have any behavior in there
that is not using msmerge and xgettext (I mean, besides going through the
cs and cshtml files), hence I don't see it as an extension point or
something that can be reused in another context besides an executable.
It even feels to me all the external tools could be packaged with the
PostBuild executable.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-12850735
.
from i18n.
I agree that anything that can be done to simplify managing the synchronization between the template and the application is a positive thing. But given that you don't want that slowing application restart and that with any change you would have to wait until the new strings have been translated in the PO files anyways, it really feels as an action that should be done offline as part of the application management process and not necesarily as part of the application building or running.
I actually think a post build action is a good option although I would actually prefer an external tool that can be run for the project 'on-demand'.
After you've merged the gettext libraries into postbuild i was actually thinking of wrapping it as a visual studio extension that will add a menu command that could be executed on top of a 'valid' project.
from i18n.
+1 @raulvejarI Sometimes the Hosting is restrictive of starting a new process from inside a website(for example Azure Websites) and building the .PO files in App_Start could pose a problem. This is more administrative task and should be handled that way.
from i18n.
Okay, we'll do it that way. I've always had a bias for dynamic processes
for migration, minification, etc., but understand some don't work in full
trust or want to sacrifice their CPU in production environments.
So we'll do it your way and perhaps I'll just reference a hook for my own
purposes.
On Wed, Jan 30, 2013 at 4:04 AM, Apostol Apostolov <[email protected]
wrote:
+1 @raulvejarI Sometimes the Hosting is restrictive of starting a new
process from inside a website(for example Azure Websites) and building the
.PO files in App_Start could pose a problem. This is more administrative
task and should be handled that way.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-12880237.
from i18n.
I believe issue #58 addition to v2 branch addresses this.
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.