How to make an internalization [Beginner]

Hi
I'm new to all those internalization stuff. My question is how to do that? I thought that using ResourceBundle class and properties files would be a good solution, but I can't see any proffesional projects making internalization that way. I heard that java.util.Formatter class is able to do some conversions with String values, but is it good for internalization? There's no many sources about that in the net, so could someone send me some little peace of code how to do internalization with Formatter class (I have no idea)
reagrds,
ania

I wonder which "professonial projects" you are referring to. If by "internationalization" you mean separating code from translatable text, then resource bundles/properties files is exactly the way to go. I suggest that you read the Internationalization Trail of the Java tutorial (and read some of the other documents that turn up if you do a search on "internationaliztion" on the sun site).
Don't worry about the Formatter class, as the description says, it is "similar to that of the C language's printf", so you should not use it for basic internationalization.

Similar Messages

  • How to make a Previous/Next Menu

    Hi there.  This is my first time posting in the Adobe forums so please be patient if I don't do things correctly.
    I currently have the Adobe Web Design CS5 package and all the programs that come with it, but my question is specifically about Dreamweaver.  My computer is a Macbook with the latest operating system as far as I know.
    I've been trying to create a next/previous menu for parts of my own personal website.  It's http://www.aidenart.com . If you click on the link to the Concept Art page you should see a bunch of image thumbnails that act as links.  Click on any one of those images and you're suppose to see the full image from the thumbnail in a whole new page.  On the pages with the full images I would like to include, at the bottom, a jump menu so that a visitor can pick any of the pages that they might want to see (I already know how to do this part), but I would also like to include buttons which allow the visitor to visit the next image in the list and also the previous one in the list.  You know, a previous and next menu.  I've seen other websites using those kinds of buttons so I know it's possible somehow.
    By looking at the source code of some websites and doing a bit of research on my own, I think this can be done using javascript of some kind.  Maybe by using an "onClick" behaviour or something.  I looked at a few different web help sites, including W3 Schools, and I still haven't found any clear cut explanations on how to make a previous/next menu.  If someone could just show me the basic code for making a simple one that actual works then I could probably work from that.
    I would prefer it if I didn't have to bother with the dreamweaver extenstions section because most things listed in the exchange are something you have to pay for.  And for those of you who think I should just make individual links on each page, please keep in mind that I'll want to add more pages in the future.  Most likely a lot of pages.  I also want to be able to make previous/next menus for the comics section of my website for when I have more comic pages available, so I really need to know how to do this.
    I hope that was enough information for you guys.  I can try to provide code if you guys want although I'm not sure how that would help solve my current problem.

    Only way to do pagination effectively requires either a database or XML files containing your data.  Neither way is really for a beginner based on my experience with both.  And based on the size of your library right now, pagination isn't what you really need.
    If it is going to be an image gallery you could look into the php Gallery script if you have a mySQL database ( http://gallery.menalto.com/ ).  But for simple solutions.
    For even smaller solutions you can look to JQuery solutions.  They require minimal amounts of coding, mostly just file inclusions.
    http://galleria.aino.se/
    http://fancybox.net/
    http://www.twospy.com/galleriffic/#1
    It's just about finding one that meets your needs and gives you the ability to customize as you see fit.

  • How to make a clipping mask in this particular case?

    Okay, Just to begin I know how to make a clipping mask, but for the case that I'm going to present right now I just can't figure out what mistake I am doing (if any). However I am a beginner.
    http://vector.tutsplus.com/tutorials/illustration/how-to-create-a-medieval-paper-scroll/
    In the link to above tutorial on how to make a medieval scrol I'm stuck at step 25 and would be glad to anyone who helped.
    As said in step 25 that expand the appearance of the scroll and select the two then clip the mask. In th above picture I have just selected the scroll to show how it looks.
    Now as you can see in the image below I have expanded the appearance of the paper scroll. Then I selected the paper scrol and the yellowish green grunge background placed below it. And the moment I hit Ctrl+7 (in windows) or Command+7 (in Mac) to make a clipping mask the error that showed up has been highlighted.
    One more thing, I have clipped masks before too in the same tutorial given above but I don't know what has gone wrong for me in this step.
    Please help.
    Signed,
    Awais Rauf

    Why would you want a clipping mask? I don’t see a reason for it.
    However, for what you want I would use the Pathfinder panel to combine all the paths into one shape. First use the ungroup and release compound commands a few times each, to make sure you have nothing grouped. Then press the top left button in the Pathfinder p[panel. This should produce one closed path that just surrounds the scroll.

  • How to make Javascript access standard JSF component

    Hello all,
    I'm in need of a proper javascript code that access standard jsf component.
    Like we do for html tags;
    if( el.tagName.toLowerCase() != 'select')
    I need to do the same thing for a jsf tag i.e; <h:selectOneMenu>. How to make javascript access <h:selectOneMenu> like it does with <select> tag ? Please let me know asap. Extremely sorry if the question is kind of stupid....cause I'm a beginner for JSF environment.
    Any sort of help, suggestion or advice would highly be appreciated.
    Thanks in advance.

    Ummmm, I may be off the beaten path, but by the time your javascript is called the h:selectOneMenu would be a select tag within the dom. You should be able to reference that tag as you normally would.

  • How I make a boot disk

    Hello.
    I'm an absolut Linux beginner and I tried to install archlinux on an external HDD, because my internal windows drives are dynamic logical Volumes and this doesn't work with Linux.
    After the installation from the CD I noticed that I cannopt boot from USB HDD because of the BIOS.
    How I make a boot disk (floppy) now ? The wiki guide doesn't help because if I boot from the installation CD I don't have the command fdformat and the command pacman - S grub works neither.
    Can you help?
    Best Regards
    BX-8017
    Excuse by bad language please, I'm not english!

    Ok,
    I found a grub boot disk on the net, it was a super grub boot disk. I deleted nearly all files and just copied my files from /boot/grub in the grub directory of the floppy disk. I used the windows tool "explore2fs" to get acces to my boot partition with the grub directory.
    Her is my menu.lst:
    # (0) Arch Linux
    title  Arch Linux
    root   (hd2,0)
    kernel /vmlinuz26 root=/dev/sdc1 ro vga=773
    initrd /kernel26.img
    # (1) Arch Linux
    title  Arch Linux Fallback
    root   (hd2,0)
    kernel /vmlinuz26 root=/dev/sdc1 ro vga=773
    initrd /kernel26-fallback.img
    # (1) Windows
    title Windows XP
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    It doesn't work, because the hd 2,0 is not found from grub. (Selected disk does not exist)
    It seams that grub is not recognizing my usb hdd at start up ?!?! but this cannot be, because during the installation process it is.
    Many Thanks
    BX-8017
    PS The possibility to boot Arch with the Windows Bootmanager is interesting. Maybe we can discuss this later.....
    Last edited by BX-8017 (2007-07-18 15:36:57)

  • How to make JDev aware of the xmldb API

    Hi everybody,
    I am a real beginner in Jdev, and I have to develop a
    Java Application using Oracle Java developer, against
    an XML-native database called eXist. I'll have to use
    a java API called xmldb supported by eXist in order to
    interact with the database. Although I have basic
    knowloedge in Object-oriented programming, but I don't
    know where to begin, especially how to make JDev aware
    of the xmldb API, and how to create classical
    application components (Windows, buttons, etc).
    Could you help me with some orientations and
    interesting links?.
    Thanks a lot.
    Mounir.

    Hi,
    don't know this database, but the database vendor should be able to explain how his DB is accessed from Java. If this requires libraries, then the vendor will provide these in JAR files, which you then configure with JDeveloper (as a custom library Tools --> Manage Libraries) or in the Project
    If there is a JDB driver for it, even better. This however is not a deliverable of JDeveloper but the database vendor
    Frank

  • How to make mouse click event to display image on 2D array?

    Hi! beginner programmer here looking for some guidance, hints and tips.
    I'm making a game of "Connect 4" and using a 2D array to display the board which is 7x6 in size.
    What i want to do is that when the player clicks on one of the squares, one of the 2 game pieces(red.png or yellow.png) will appear on the respective coordinates of the 2D array and check if the square in the first row is empty and if true, places/display
    the game piece, else it places the piece on the first empty square.
    Since i've never worked with WinForms or 2d arrays before i'm not sure how to initiate it.
    What i was considering in pseudocode was:
    pb_Mouseclick(object sender, MouseEventArgs e)
    if(e.Button==MouseButtons.Left)
    Picturebox pb=(Picturebox)sender;
    clickLocation.X= e.Location.X + pb.Location.X, pieceArray[row];
    clickLocation.Y=e.Location.Y + pb.Location.Y, pieceArray[col];
    if(pieceArray[row, col] == null)
    if(player1.IsStarter==true) selectedimage(@"yellow.png")
    else
    selectedimage(@"red.png")
    else {
    bool empty= false;
    for(int row=0; row<height - 1; row++)
    for(int col=0; col<width; col++)
    if(pieceArray[row, col] ==null)
    empty=true;
    (Add gamepiece)
    This is what i've come up with so far, but it's just some theorycrafting, not sure if i should use a while-loop instead...
    Hope anyone can give me some insight on how to make it work and if the logic of my pseudocode is correct for what i want according to my earlier explanation.
    Many thanks in advance!
    Regards
    Gabbelino
    Student at the University of Borås, Sweden

    Hi Gabbelino,
    I could not understand your game rule clearly, and could you make explanation for me?
    1.>> when the player clicks on one of the squares
    What were the squares? Did it like dice or anything else?
    2.>> one of the 2 game pieces(red.png or yellow.png) will appear on the respective coordinates of the 2D array
    What is the 2 game pieces? Could you show us the two pictures?
    3.>> check if the square in the first row is empty and if true, places/display the game piece, else it places the piece on the first empty square
    Could you show us where places/display the game piece?
    Best Regards,
    Tony
    Help each other

  • How to make my CNiGraph to be SingleThre​ad Support?

    How to make my CNiGraph to be SingleThread Support? I generate the member varialbe of my CNiGraph using class wizard. In that case, I have
    CNiGraph m_graph;
    in a header file of a dialog.
    If I just make it,
    CNiGraph m_graph(CNiInterface:ingleThread);
    it gives me errors.
    I expect that it is beginner's FAQ in VC++.
    Thank you.

    In C++, you use the class member initialization list to call a non-default constructor of a member variable of the class. The member initialization list is specified with the constructor of the class. So, what you want to do is something like the following, where CMyDlg is the class that contains m_graph.
    CMyDlg::CMyDlg(CWnd* pParent /*=NULL*/)
    : CDialog(CMyDlg::IDD, pParent),
    m_graph(CNiInterface:ingleThread)
    David Rohacek
    National Instruments

  • How to make your movie from a template in AE CS6?

    Hello,
    Firstly, I'm new to this forum and Adobe After Effects. Hence, please excuse my beginner's language.
    I recently modified a slideshow template in AE CS6. After doing all the necessary modifications in the template project, I do not know how to make a movie out of it.
    I'll appreciate your help in guiding me by providing the necessary information to create the movie.
    Waiting for a reply.
    Thanks

    JMichael wrote:
    Actually, I have to create the movie urgently and send it to a colleague.
    Ouch. That's rather like saying your thesis committee needs your paper tomorrow and, say, while we're at it, can we help you with your research?
    After Effects is huge, unbelievably deep and stupidly complicated.
    It's not that we don't WANT to help you, it's that we cannot execute the rendering commands for you nor can we make all of the rendering and output decisions for you.

  • How to make this effects on AE CS4

    First of all, I apologize for my English
    Anyway  it's amazing video
    I'm wondering can AE do this? or need to use some software like cinema 4D ?  How to make the light streak around the guys , and some part it look like it's behind on some parts  I tried , rotoscoping some part the light streaks will go to behind , but how to go back to front ? and it look smooth and perfect like the preview video?   Anyone could tell me the steps for this project?
    Anyway , here are my quesions  1. I don't know how to create the own path for the light streak , for example , i want to make it around the guys .  2. When it's a moving objects , how can I make that perfect for the light streaks path ?  Thank someone for help

    The answers are the same ones you got on Video CoPilot. Yes, rotoscoping and yes, Particular. The rest is just a matter of a few keyframes, some tracking and arranging everything in 3D space plus finding the right masking modes. Just keep trying. Nobody can explain to you how to make art, especially since you are a beginner at both AE and Particular.
    Mylenium

  • I just got logic and need help i dont know how to make a track at all

    i just got logic and need help i dont know how to make a track at all

    Pancenter wrote:
    There was a time not too long ago when people respected the incredible amount of talent that contributed to this software...Everyone -wanted- to learn about the craft and "art" that goes into being a good engineer, musician, producer...etc.      
    Beginner's did enough reading and experimentation to at the very least, ask an intelligent question.
    pancenter-
    Hey Pancenter there are still lots of us about.
    I wouldn't take the original post too seriously - I may of course be naive but it sounds like it could be a troll to me!
    I learn a lot from reading the posts of the likes of you, Erik, Bee Jay, sampleconstruct, noeqplease etc so I hope you guys don't become too dispondent when you see posts like these.
    By the same token, I hope the Logic team continue to use their talents to develop powerful software that caters for the professional user, while allowing Garageband to continue to do its (excellent) job of providing for its market.

  • I was able copy the hardrive of my old macbook from "My Passport" onto the desktop on an older iMac. but i dont know how to make my hardrive and user name be the main one since someone had used it in the past and had their info on the comp. please help!

    I recently broke my 2008 macbook. i was able to use an external hardrive to back up my data onto My Passport. I was going to buy a new computer but a friend told me sher had an older version of the iMac. (not sure how old but it doesnt have a camera if that helps) i was able to hook it up and turn it on but i ran into a few problems. 1) the "authentic" user or whatever it says is someone who previously used the computer. i added me as a user but im not sure how to make me the main user. 2) after hooking up My Passport, i was able to drag my files and copy them to the desktop.(i think i did it correctly) now, i dont know how to make my hard drive and applications and iformation the "main " info. The current apps on the iMac are super old versions of iTunes and iPhoto and such. 3) while trying to open the apps from my macbook on the iMac, it said it didnt have the right software to open these apps.
    I am so computer illiterate so someone please help!!! Also, i do not have internet in my new apartment yet so if there is a way to make this happen without using the internet that would be preferred. sorry for the horrible spelling and poorly written paragraph.
    THANK YOU!!

    You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
    You need to get a new computer or a refurbished one.

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make downloadable links in Adobe Muse

    I am new to website design and am trying to figure out how to make downloadable links for some PDF flyers, PSD templates I am creating.   Not sure if "downloadable links" is the correct term for what I'm trying to say but in a nutshell I am creating Business Flyer's in PDF form and Photoshop PSD template files that I would like to be able to have my users click a link that allows them to download them right to their desktop.  Any help would really be appreciated!

    Hi caybar10gaming,
    I had the same question as you and was searching online for how to add "downloadable links" as well so your not alone in that lol. Anyways, I found this video that explains how to do this. I hope this helps you, as it did me. Good Luck  
    http://tv.adobe.com/watch/muse-feature-tour/add-and-link-to-any-type-of-file/
    -Caitlin

  • I cannot figure out how to make the text larger on an incoming email.  The finger method doesn't work and I cannot find any toolbar with which to do it.  I could find nothing in settings also.  Plese help and thank you.

    I cannot figure out how to make the text larger in a received email.  The finger method doesn't work and I can find no tool bar as I can for composing emails.  I can find nothing in settings.  Please help and thank you in advance.

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

Maybe you are looking for