Hi everyone,
I will be supporting 5 languages in my app.
And I'm not sure if my memory usage will increase a lot if I put all the image resources inside the resource file.
Currently the images are 25MB / language
My memory usage is 600MB currently.
Will it consume more memory when i put in all resources in the resource file?
Thanks in advance.
-dantz
16 2676 tlhintoq 3,525
Recognized Expert Specialist
Your *memory* usage is 600mb? That's more than Adobe Photoshop.
What the frak is the application for?
A 2gig machine with 1.3 for the O.S. will barely be able to run it.
You could do language specific resource files so that when your installer runs for that language then you get just those resources.
If you built a form in one language (default/English), then changed the language in designer (say to German), then imported your graphics, it should have happened automatically. I've only done a couple applications like this (English, Spanish) but it was pretty painless once I got the 'feel' of it.
The memory is roughly around this size 400-600mb...
It is a game manager that handles flash games
Inside the game manager got 10 picturbox that have timer to do animation by changing images. 1 of the picturebox change images every 50ms interval of the timer, while others are using 100ms interval.
For changing of language, the trigger will be during run-time.
I have something like a system menu where the user can choose 2 language between the 5 available languages. Then when he finish choosing the languages it will be reflected on the main form where there is a button to change between the 2 language.
How am I suppose to support these kind of feature without increasing my memory usage?
Another question is it possible to make the supporting without changing the code?/ I mean if i add one more language from the present 5 is it possible to do it by not changing any source code?
TIA
-dantz
i made a application like that, i used XML's with text in different languages, but i dont understand, you are using images instead of text and want to.. "translate" text in images? if thats the way then as tlhintoq said just make different resource files with images in different languages and then use the resource file according to language (the same way i did with XML's -- was easy)
tlhintoq 3,525
Recognized Expert Specialist
Vishal: Nobody said anything about translating text to images, except you.
Datz: You could change the design from having everything in memory/resources to having your images in directories within the application directory. Then change languages based on what directories exist. To add a language you just add a subdirectory with your images and maybe a file of all the text used in messages.
but i dont understand, you are using images instead of text and want to.. "translate" text in images?
i said that, i didnt *understand* what he exactly wanted to do.. it was a guess sheesh..
Frinavale 9,735
Recognized Expert Moderator Expert
What I don't understand is why having multiple resources for different languages is going to affect your memory anyways??
When you're using an application you just want it to be displayed in the language/culture that you are comfortable with. You don't really care about the other languages/cultures.
Resource files make this possible. Only the resources required for the application in the user's language/culture is used (unless the resource can't be found in that language/culture in which case it falls back to the default language/cultural resource). It doesn't make sense to load 5 resource files when the user is only interested in viewing the application in their language/culture.
The resource files may take up space on the hard drive but I wouldn't have thought that they effect memory...?
If you're unfamiliar with resources in .NET check out Resources in Applications, Resources in .resx file format, Creating Resource Files, Packaging and deploying resources, and Satellite Assemblies...
-Frinny
tlhintoq 3,525
Recognized Expert Specialist
For changing of language, the trigger will be during run-time.
I have something like a system menu where the user can choose 2 language between the 5 available languages.
To me I think the OP is creating a language training game. Pick English and Spanish to learn a new language. Pick Gernan and French. Etc. Which would explain why he has to load so much data and not just a single language installation.
Dantz: Am I guessing correctly?
Thanks for all the replies
To me I think the OP is creating a language training game. Pick English and Spanish to learn a new language. Pick Gernan and French. Etc. Which would explain why he has to load so much data and not just a single language installation.
tlhintoq: Nope it is not a training game. The reason for supporting 2 language is to let users choose which language they are comfortable with.
(I am just actually following a user requirement. If I will be deciding on the language I will just use the local language where my application will be shipped)
...but i dont understand, you are using images instead of text
vishal1082: I am using images because the display for Chinese and Japanese text doesn't look nice..That was my solution to deal with those double byte characters because the UI must look really nice (~even though i know resources file size will suffer)
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: dc |
last post by:
Product Announcement:
Multi-Lingual web site using Nested Templates and Menus
http://www.decloak.com/Products/Dreamweaver/NestedTemplates/
You can see the TONGUES of FIRE demo web site at
http://www.decloak.com/Products/Dreamweaver/NestedTemplates/Demos/NestedT_Tongues_of_Fire/
This name is from the BIBLE,
"...every man heard them speak in his own language." Acts 2:1-12 NIV
|
by: THY |
last post by:
anyone know a good way to create a multi-lingual website in ASP.Net ?
thanks
|
by: Steve Smith |
last post by:
I have written a winforms application that launches approximately 150
threads with
Thread.ThreadStart()
Each thread uses CDO 1.21 to logon to a different Exchange mailbox and
send/receive a number of mail messages, reporting back to the UI thread
through the use of a Queue object. When all messages that are expected have
been received, each thread sends a final update to the UI and the method
should exit, which should terminate the...
|
by: brian.wilson4 |
last post by:
Our group is currently comparing winforms vs webforms.....app is Corp
LAN based - we have control of desktops.....Below is pros and cons list
we have come up with - if anything strikes you as untrue or you would
like to add - please comment - thanks.....
Rich Client PROS
1. User experience (* indicates feasible on web with AJAX) -
a. Single, unified application experience
b. Windows/Office-like look and feel -
i.Tabs - drag and drop...
|
by: Dylan Parry |
last post by:
Hi folks,
I was wondering if anyone here has experience of making Web applications
that are multi-lingual? The solution that I have in my head is to have
several "language" files as resources so that there are no hard-coded
strings within my class library, but I'm not sure how to start.
Is there a recommended technique for doing this, or maybe some tutorials
that show some simple implementations of such a system?
| |
by: Frank Rizzo |
last post by:
Hello,
I've compiled my app for AnyCPU setting in vs2005. Then I tried the app
on both 32-bit Windows 2003 R2 and 64-bit Windows 2003 R2. The memory
usage of the application when working on the same data set were
unbelievable (the data is from Task Manager) :
32-bit Windows 2003 R2
Mem Usage: 481,400k
Peak Mem: 583,020k
|
by: deerchao |
last post by:
I'm developing a WinForms application. It slowly eats up memory, one
client reported that it took 200MB or more, and finnaly crashed. I
myself noticed it's common to use up 30MB memory, but if I minimize it
(all the Forms will Hide, only a NotifyIcon is shown at the System
Notification Area), the memory usage comes down to 8MB immediately.
After that, even if I show the Forms again, it uses only 8MB memory.
Do I have another way to...
|
by: Ilias Lazaridis |
last post by:
How to detect memory leaks of python programms, which run in an
environment like this:
* Suse Linux 9.3
* Apache
* mod_python
The problem occoured after some updates on the infrastructure. It's
most possibly caused by trac and it's dependencies, but several
components of the OS where updated, too.
|
by: Jonathan |
last post by:
Before I start creating a new asp.net website, is there a standard way of
making it multi-lingual?
For example, rather than type in body text to a page, should I rather refer
by number code to a row in a language table from which to pull the
appropriate text? Same with menu elements etc? I am thinking of having a
drop-down on the top-right like MS does with Language and country flag too.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |