글

라벨이 ResouceModel인 게시물 표시

7. SAP UI5 Multilingual Application (다국어 적용)

이미지
  SAP UI5 Multilingual Application (다국어 적용)  이번 단계에서는 ResourceModel을 활용하여 Application에 다국어를 적용하는 방법에 대해서 살펴본다.  (In this step, we will look at how to apply multilingualism to applications using ResourceModel.) 실행결과(Results of this step)   브라우저의 언어가 한국어인 경우를 가정하여 i18n 파일을 활용하여 한국어가 적용된 application을 만든다.   (Assuming that the browser's language is Korean, use the i18n file to create an application to which Korean is applied.)      실행 순서(Order of execution of this step): i18n_ko.properties 파일 생성하여 한국어 등록한다. (Create the "i18n_ko.properties" file and register in Korean.) manifest.json 파일에 한국어 정보를 추가한다. (Add Korean information to the "manifest.json" file.) 1. i18n_ko.properties 파일 생성하여 한국어 등록한다.    (Create the "i18n_ko.properties" file and register in Korean.) webapp/i18n/i18n_ko.properties 파일을 신규 생성한 후 한국어 번역 정보를 추가한다. (Add Korean translation information after creating a new "webapp/i18n/i18n_ko.properties" file.) 한국어 외에 다른 언어를 추가할 때에는 로케일 접미사...

5. SAP UI5 Resource Model Apply

이미지
SAP UI5 Resource Model Apply (다국어 처리 - Translatable Texts) 이 단계에서는 UI5의 Data 처리를 위한 Model 중 하나 인 Resource Model을 활용하여 다국어를 적용하는 방법에 대해 살펴본다.  (In this step, we will look at how to apply multiple languages using the Resource Model, one of the models for data processing in UI5.) 실행 결과(Results of this step) 실행 순서(Order of execution of this step): i18n property 파일 생성한다. (Create the i18n property file.) Controller에서 ResourceModel 선언 및 View에 할당한다. (The Controller assigns ResourceModel Declaration and View.) View에서 ResourceModel 연동한다. (In View, link ResourceModel.) 1. i18n property 파일 생성한다.    (Create the i18n property file.) webapp/i18n/i18n.properties 파일 생성 및 코드 작성한다. 파일 이름은 사전에 약속된 Naming Rule로 정해져 있다. (Create and code the "webapp/i18n/i18n.properties file." The file name is set to the Naming Rule that was previously promised.)      1 2 showHelloButtonText=Say Hello helloMsg=Hello {0}           코드 해석(Code description) hel...