Author Topic: Where does "Region Name" being referenced from  (Read 775 times)

Offline samuel1991

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Where does "Region Name" being referenced from
« on: September 23, 2009, 04:39:35 am »
Hi Alex, I would like to know whenever I create a C++ files and add a Region, where does this "Region Name" referenced from?

(Please refer to attached screenshot)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 772
  • Karma: +6/-0
    • View Profile
Re: Where does "Region Name" being referenced from
« Reply #1 on: September 23, 2009, 07:39:00 am »
Hi Samuel, i am not Alex, i hope you don't mind :D

That what you see there is another great feature of HippoEDIT, called "Code Templates"

You can see/add/modify them with "Tools > Options > Syntax Settings > "your syntax" > Code Templates".
They are stored in "HippoEDIT\data\syntax\"   here f.ex. in  "c++_user.xml "

Just search the forum for "Code Templates" to learn more...
f.ex.: here http://forum.hippoedit.com/index.php/topic,86.msg193.html#msg193

or just ask us  :P

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Where does "Region Name" being referenced from
« Reply #2 on: September 23, 2009, 06:57:52 pm »
Thanks a lot Stefan.

Just want to add a little bit.

to Samuel:
as you know C++ does not support built-in regions (user defined collapse-able areas).
So the template you have used, is a just a trick which implements HippoEDIT to help in this.
Template creates a special comment, inside of which reserved word is used, which is recognize by HE as scope start and same with another comment with scope end. You can check cbase_spec.xml and c++_spec.xml for details.

Code: [Select]
      <Style id="format_tag" extend="true">
        <Blocks>
          <Block open="//$" close="\n"/>
        </Blocks>
      </Style>
      <Scope open="region" close="endregion" has_name="true">
        <Containers open="format_tag"/>
      </Scope>

End the Region Name you are asked is just interactive parameter from code template use for creation of regions. Just give any name.

Best regards,
Alex.

Offline samuel1991

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: Where does "Region Name" being referenced from
« Reply #3 on: September 24, 2009, 05:28:33 am »
sure, no problem Stefan. Thanks a lot to both Stefan and Alex. So if I need to localize these xml files, I would need to localize the user xml files will do and where are the similar possibility for people who wish to customize or localize?

I think HE is great so I feel that I would like to localize all 3 different versions.
« Last Edit: September 24, 2009, 06:12:48 am by samuel1991 »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Where does "Region Name" being referenced from
« Reply #4 on: September 24, 2009, 11:28:27 am »
Hi Samuel,

your post was not clear to me :)
HE does not support localization now. Yes, you can change text for code templates (in places where interactive variables are used) but this is very small part of text used in HE, and also user files (where code templates are stored) are not overwritten (updated) after first install. So, if user already has some pre-installed templates, they would not be changed.

I think, correct way would be just to wait until HE would became localizeable (I would add infrastructure for this), but this would happen not earlier then in 1.6x. Then your help would be very welcome ;)

Best regards,
Alex.

Offline samuel1991

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: Where does "Region Name" being referenced from
« Reply #5 on: September 24, 2009, 12:07:46 pm »
It is possible, the only thing I missed is the hardcoded strings which I am not sure which to localize. (I had even localized the whole app,almost apart of those latest strings added in 1.46 which probably I will wait a while.)

That does not involved in cracking etc (Which I didnt really see one)
« Last Edit: September 24, 2009, 12:09:27 pm by samuel1991 »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Where does "Region Name" being referenced from
« Reply #6 on: September 24, 2009, 06:28:46 pm »
Cool! You even do not need to have resource files to do localization.
And this is huge work, to translate everything!
If you like, I can send them to you. Probably this would help, if tool does not do this for you.
Also I can provide you installation NSIS script, to create already localized installer if you like, and I can host it or have a link to your page.

I can also create localization dlls, if you like, for Chinese.
But the problem with such way we have already discussed, is that I need to ask you about updated translation with every new text I create in English version to keep resource dll in sync... Otherwise, as far as I know, it would crash :/. But generally I do not have experience with it. Maybe I am wrong.

But Ok, see your efforts ;) ... I would think for maybe not perfect, but easier solution for localization for 1.50. But after all planned features.

Best regards,
Alex.

Offline samuel1991

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: Where does "Region Name" being referenced from
« Reply #7 on: September 25, 2009, 12:40:04 pm »
Hi alex, I have heard of it, just not sure if

A) It will crash if not updated, as ou have mentioned  OR

B) It will revert back to usual English Language if the thing is not translated.

Maybe your resource file will greatly help me in localizing it to Chinese, and probably, I will send that file to you.

Offline samuel1991

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: Where does "Region Name" being referenced from
« Reply #8 on: September 25, 2009, 12:49:45 pm »
Just to let you know, I did not use resource dll, but localize the main app (That the EXEs and Dlls are localized)

By the way, unless the application is something similar to Adobe Acrobat, where there is a perference for languages, resource dll depends on current user's region settings (So far what I have seen, I may be wrong too) where if there is a need to switch region settings, the localization wont work (Unless that language also has its localization, for example: A Chinese Simp. Regional Setting changed to Chinese Trad. Settings, That targeted app, for this case, HippoEDIT will revert to English even though the localized resource dll .chs files are present, unless the localizer did the Chinese Trad. localization with .cht file installed on the same location.)

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Where does "Region Name" being referenced from
« Reply #9 on: September 25, 2009, 11:40:56 pm »
Yes, this what I meant.
For other languages, for which resource dll not exist, would be no difference.
But if resource dll would match, and it has not up to date resources it would crash and not go to English (or built in) resource. At least if standard way used. but from another way I have not tested this, so maybe I am wrong.

I have sent you already resource files.

Best regards,
Alex.

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
695 Views
Last post February 15, 2009, 04:28:32 pm
by alex
0 Replies
543 Views
Last post March 07, 2009, 08:51:51 pm
by Stefan
3 Replies
382 Views
Last post April 19, 2009, 08:42:05 am
by Stefan
1 Replies
637 Views
Last post May 18, 2009, 08:51:21 pm
by alex
6 Replies
584 Views
Last post October 03, 2009, 10:46:03 pm
by alex