Alon Bar-Lev has uploaded a new change for review.

Change subject: doc: branding: style cleanups
......................................................................

doc: branding: style cleanups

Change-Id: I339f60c54aa6e54ff78d82e525b00dff8ba36026
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M README.branding
1 file changed, 32 insertions(+), 24 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/41/24141/1

diff --git a/README.branding b/README.branding
index 876dabd..42d5d9e 100644
--- a/README.branding
+++ b/README.branding
@@ -169,33 +169,41 @@
 MAINTENANCE - ADDING A BRANDED MESSAGE
 --------------------------------------
 
-All branded messages feed into the application via the host page and then via 
the
-ApplicationDynamicMessages classes. To added a new branded message to the 
application:
+All branded messages feed into the application via the host page and then
+via the ApplicationDynamicMessages classes. To added a new branded message
+to the application:
 
-1. add a property to messages.properties or external_messages.properties in 
the form of
-    obrand.webadmin.my_new_message=BrandX Message
-    obrand.userportal.my_new_message=BrandX Message
-  You'll need to add one for both webadmin and userportal if you want the 
message
-  exposed to both applications.
-  NOTE: Use messages.properties for any messages that will need to be 
translated into
-  other languages. Use external_messages.properties for anything else, like 
URLs.
-2. in DynamicMessages.java, add a key to the DynamicMessageKey enum for your 
property.
-3. in DynamicMessages.java, add a getter for your property. Use the existing 
getters
-  as examples.
-4a. If the message will be exposed to webadmin, add a constant to the webadmin 
copy
-  of ApplicationConstants.java. This will be used as a fallback if the 
branding files
-  are missing. Example:
-    @DefaultStringValue("BrandX Message")
-    String myNewMessage();
-4b. If the message will be exposed to webadmin, repeat 4a for userportal's 
copy of
-  ApplicationConstants.java.
-5a. If the message will be exposed to webadmin, add an addFallback() call in 
webadmin's
-  copy of ApplicationDynamicMessages.java. Use existing calls as examples.
-5b. If the message will be exposed to webadmin, repeat 5a for userportal's 
copy of
-  ApplicationDynamicMessages.java.
+1.  add a property to messages.properties or external_messages.properties
+    in the form of:
+      obrand.webadmin.my_new_message=BrandX Message
+      obrand.userportal.my_new_message=BrandX Message
+    You'll need to add one for both webadmin and userportal if you want
+    the message exposed to both applications.
+    NOTE: Use messages.properties for any messages that will need to be
+    translated into other languages. Use external_messages.properties for
+    anything else, like URLs.
+2.  in DynamicMessages.java, add a key to the DynamicMessageKey enum for
+    your property.
+3.  in DynamicMessages.java, add a getter for your property. Use the existing
+    getters as examples.
+4a. If the message will be exposed to webadmin, add a constant to the webadmin
+    copy of ApplicationConstants.java. This will be used as a fallback if the
+    branding files are missing. Example:
+      @DefaultStringValue("BrandX Message")
+      String myNewMessage();
+4b. If the message will be exposed to webadmin, repeat 4a for userportal's
+    copy of ApplicationConstants.java.
+5a. If the message will be exposed to webadmin, add an addFallback() call in
+    webadmin's copy of ApplicationDynamicMessages.java. Use existing calls as
+    examples.
+5b. If the message will be exposed to webadmin, repeat 5a for userportal's copy
+    of ApplicationDynamicMessages.java.
 
-You can now use an injected ApplicationDynamicMessages to access the branded 
messages.
+You can now use an injected ApplicationDynamicMessages to access the branded
+messages.
+
 Example:
   Anchor x = new Anchor(dynamicMessages.myNewMessage());
+
 See HeaderView.java for a real-world example.
 


-- 
To view, visit http://gerrit.ovirt.org/24141
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I339f60c54aa6e54ff78d82e525b00dff8ba36026
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to