where can i find the file for the colored “mentions”
When registering for example you get a green "message" on your screen to let you know you registered, and other messages. errors in red
What file is that in, i'd like to translate but can not find the file..., also i'd like to change colors, is that in a css file?
ce-1.9.0.1 css localisation messages
add a comment |
When registering for example you get a green "message" on your screen to let you know you registered, and other messages. errors in red
What file is that in, i'd like to translate but can not find the file..., also i'd like to change colors, is that in a css file?
ce-1.9.0.1 css localisation messages
add a comment |
When registering for example you get a green "message" on your screen to let you know you registered, and other messages. errors in red
What file is that in, i'd like to translate but can not find the file..., also i'd like to change colors, is that in a css file?
ce-1.9.0.1 css localisation messages
When registering for example you get a green "message" on your screen to let you know you registered, and other messages. errors in red
What file is that in, i'd like to translate but can not find the file..., also i'd like to change colors, is that in a css file?
ce-1.9.0.1 css localisation messages
ce-1.9.0.1 css localisation messages
edited 16 mins ago
Teja Bhagavan Kollepara
2,94841847
2,94841847
asked Nov 26 '14 at 15:36
carlocarlo
254823
254823
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The word you're looking for is "flash" or notification messages. In Magento and in other MVC frameworks, they are usually set into the session in the controller. For example, Mage_Adminhtml_Catalog_ProductController
, sets various flashes to the session according to the flow of the process.
To actually retrieve and display these messages, you do $this->getMessagesBlock()->getGroupedHtml()
, which will return all messages stored in the session. getMessageBlock()
is available to any block class, as it is a method of Mage_Core_Block_Abstract
.
The styling can be changed with CSS. The class name is messages
.
add a comment |
So it is a bit general but Magento will pass these messages through a translation function, this may not be the case for all 3rd part modules though. This means to translate the text you simply need the text your want to translate, the text your want to translate it to and the language your are working in.
A general translation file can easily be created on a theme level. What you will need to do is create your file in the following page.
app/design/frontend/{package}/{theme}/locale/en_US/translate.csv
This would be a translation file for American English, but you can replace en_US with whatever you need.
What you then need in your csv file is two string. Base text and translated text.
"This is the normal text","This is the translated text"
As for styling this can be done via css the different options are as follows.
.error-msg
.success-msg
.notice-msg
.warning-msg
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f45505%2fwhere-can-i-find-the-file-for-the-colored-mentions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The word you're looking for is "flash" or notification messages. In Magento and in other MVC frameworks, they are usually set into the session in the controller. For example, Mage_Adminhtml_Catalog_ProductController
, sets various flashes to the session according to the flow of the process.
To actually retrieve and display these messages, you do $this->getMessagesBlock()->getGroupedHtml()
, which will return all messages stored in the session. getMessageBlock()
is available to any block class, as it is a method of Mage_Core_Block_Abstract
.
The styling can be changed with CSS. The class name is messages
.
add a comment |
The word you're looking for is "flash" or notification messages. In Magento and in other MVC frameworks, they are usually set into the session in the controller. For example, Mage_Adminhtml_Catalog_ProductController
, sets various flashes to the session according to the flow of the process.
To actually retrieve and display these messages, you do $this->getMessagesBlock()->getGroupedHtml()
, which will return all messages stored in the session. getMessageBlock()
is available to any block class, as it is a method of Mage_Core_Block_Abstract
.
The styling can be changed with CSS. The class name is messages
.
add a comment |
The word you're looking for is "flash" or notification messages. In Magento and in other MVC frameworks, they are usually set into the session in the controller. For example, Mage_Adminhtml_Catalog_ProductController
, sets various flashes to the session according to the flow of the process.
To actually retrieve and display these messages, you do $this->getMessagesBlock()->getGroupedHtml()
, which will return all messages stored in the session. getMessageBlock()
is available to any block class, as it is a method of Mage_Core_Block_Abstract
.
The styling can be changed with CSS. The class name is messages
.
The word you're looking for is "flash" or notification messages. In Magento and in other MVC frameworks, they are usually set into the session in the controller. For example, Mage_Adminhtml_Catalog_ProductController
, sets various flashes to the session according to the flow of the process.
To actually retrieve and display these messages, you do $this->getMessagesBlock()->getGroupedHtml()
, which will return all messages stored in the session. getMessageBlock()
is available to any block class, as it is a method of Mage_Core_Block_Abstract
.
The styling can be changed with CSS. The class name is messages
.
answered Nov 26 '14 at 16:19
musicliftsmemusicliftsme
5,33752567
5,33752567
add a comment |
add a comment |
So it is a bit general but Magento will pass these messages through a translation function, this may not be the case for all 3rd part modules though. This means to translate the text you simply need the text your want to translate, the text your want to translate it to and the language your are working in.
A general translation file can easily be created on a theme level. What you will need to do is create your file in the following page.
app/design/frontend/{package}/{theme}/locale/en_US/translate.csv
This would be a translation file for American English, but you can replace en_US with whatever you need.
What you then need in your csv file is two string. Base text and translated text.
"This is the normal text","This is the translated text"
As for styling this can be done via css the different options are as follows.
.error-msg
.success-msg
.notice-msg
.warning-msg
add a comment |
So it is a bit general but Magento will pass these messages through a translation function, this may not be the case for all 3rd part modules though. This means to translate the text you simply need the text your want to translate, the text your want to translate it to and the language your are working in.
A general translation file can easily be created on a theme level. What you will need to do is create your file in the following page.
app/design/frontend/{package}/{theme}/locale/en_US/translate.csv
This would be a translation file for American English, but you can replace en_US with whatever you need.
What you then need in your csv file is two string. Base text and translated text.
"This is the normal text","This is the translated text"
As for styling this can be done via css the different options are as follows.
.error-msg
.success-msg
.notice-msg
.warning-msg
add a comment |
So it is a bit general but Magento will pass these messages through a translation function, this may not be the case for all 3rd part modules though. This means to translate the text you simply need the text your want to translate, the text your want to translate it to and the language your are working in.
A general translation file can easily be created on a theme level. What you will need to do is create your file in the following page.
app/design/frontend/{package}/{theme}/locale/en_US/translate.csv
This would be a translation file for American English, but you can replace en_US with whatever you need.
What you then need in your csv file is two string. Base text and translated text.
"This is the normal text","This is the translated text"
As for styling this can be done via css the different options are as follows.
.error-msg
.success-msg
.notice-msg
.warning-msg
So it is a bit general but Magento will pass these messages through a translation function, this may not be the case for all 3rd part modules though. This means to translate the text you simply need the text your want to translate, the text your want to translate it to and the language your are working in.
A general translation file can easily be created on a theme level. What you will need to do is create your file in the following page.
app/design/frontend/{package}/{theme}/locale/en_US/translate.csv
This would be a translation file for American English, but you can replace en_US with whatever you need.
What you then need in your csv file is two string. Base text and translated text.
"This is the normal text","This is the translated text"
As for styling this can be done via css the different options are as follows.
.error-msg
.success-msg
.notice-msg
.warning-msg
answered Jan 30 '15 at 16:37
David MannersDavid Manners
24.6k862211
24.6k862211
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f45505%2fwhere-can-i-find-the-file-for-the-colored-mentions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown