Create Language tags in code (Search and replace)

Cancelled Posted 7 years ago Paid on delivery
Cancelled Paid on delivery

We are using I18N to handle languages. I18N looks for [#[Text to translate]#]. We have to find all texts and translate to english (google translate) and add [#[ before, and ]#] after the text.

So if the code looks like <strong>Navn</strong> - put it in google translate from Danish to English (Navn = Name) and put tags around - so the end result is <strong>[#[Name]#]</strong>.

Task A : Add display tags to all holder classes. Find all .cs files ending with Holder.cs. For all properties add [Display(Name = "[#[Created]#]")] above. Use the property name as the text. If the property name contains upper case, split this with space like CustomerName = Customer name. Ignore all property names ending with id. If there is a property name ending with Visual like StatusVisual - use the same title as the property without Visual (in this case Status).

Task B : Search and replace in all *.cshtml files. Any multi tag lines where the same html tag is used (eg. <h3>) on subsequent lines - change it to two <h3> lines and use <br /> as line seperator. Like in Views/Accounts/[url removed, login to view] line 113.

<h3>[#[I cannot find any subscriptionplans<br />

that are not already assigned to]#] at([url removed, login to view]?[url removed, login to view])</h3>

change to

<h3>[#[I cannot find any subscriptionplans]#]</h3>

<h3>[#[that are not already assigned to]#] at([url removed, login to view]?[url removed, login to view])</h3>

If a sentence contains a link - the link must be included in the [#[ ]#] tags.

example one (isolated text): <a href="/Plan/StartPlanSubs/at([url removed, login to view])" class="edit-button">[#[START]#]</a>

example two (embedded link): <h4>[#[Klik på Payment gateway i venstre side, eller <a href="/Paylike">klik her</a>]#]</h4>

If a span token is used (normally to make some of the text blue) - the span token must be included.

like:

<h2>[#[Assign <span class="bluefont">subscriptionplans</span>]#]</h2>

If the sentence includes data in the middle - use I18N formatting style like this:

<h4>[#[There are %0 subscriptionplans|||at(plancount)]#]</h4>

%0 will be replaced with the data after |||. If you add more ||| they can be referenced by %1, %2 etz. Look at [url removed, login to view] under Nuggets for specifications.

The source code will be provided.

C# Programming

Project ID: #10282519

About the project

2 proposals Remote project Active 7 years ago

2 freelancers are bidding on average $206 for this job

kjgroup197318

--------------------------Nice job. I am C# expert. No problem. Best result in time------------------------------------------

$250 USD in 3 days
(54 Reviews)
5.6
arityinfoway

Hello Sir, I have gone through your requirements regarding Create Language tags in code (Search and replace). we brief and understand your idea and preference for job as you are looking for. I have more than 6+ y More

$189 USD in 3 days
(4 Reviews)
3.0