Skip to content

Instantly share code, notes, and snippets.

@CocoaBeans
Created January 16, 2013 19:51
Show Gist options
  • Save CocoaBeans/4550245 to your computer and use it in GitHub Desktop.
Save CocoaBeans/4550245 to your computer and use it in GitHub Desktop.
Trick to add a warning comment to the top of Localizable.strings
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///
/// Localizable.strings.m
/// Checkmate
///
/// The following macro displays a message at the top of the Localizable.strings file warning anyone to not edit the file directly.
/// This is not meant to be localized by anyone and only serves as a warning.
/// We've placed this here so the genstrings build phase will process it and add it to Localizable.strings
///
/// Copyright (c) 2011 Micromat, Inc. All rights reserved.
///
/// Mutator: Mutated: Mutation:
/// -------- -------- ---------
/// Kross 12.20.11 Initial Version
///
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
NSLocalizedString(@" ", @"
////////////////////////////////////////////////////////////////////////////////////////////////////////////
WARNING: Do NOT edit this original Localizable.strings file directly! It is re-generated on every build.
Foreign Localizers may ignore this warning.
////////////////////////////////////////////////////////////////////////////////////////////////////////////
");
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment